Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c4ddeeb0 authored by Insun Kang's avatar Insun Kang
Browse files

Bug fix : enqueue one next subtitle for each subtitle.

o Do not enqueue another subtitle when notifying a null message.
related-to-bug: 6401574

Change-Id: I366e643ffa1601c11a12e46fcf7c00a469c77448
parent e370bb62
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -112,15 +112,14 @@ void TimedTextPlayer::onMessageReceived(const sp<AMessage> &msg) {
              break;
            }
            sp<RefBase> obj;
            msg->findObject("subtitle", &obj);
            if (obj != NULL) {
            if (msg->findObject("subtitle", &obj)) {
                sp<ParcelEvent> parcelEvent;
                parcelEvent = static_cast<ParcelEvent*>(obj.get());
                notifyListener(&(parcelEvent->parcel));
                doRead();
            } else {
                notifyListener();
            }
            doRead();
            break;
        }
        case kWhatSetSource: {