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

Commit 5e03fd5d authored by Andreas Huber's avatar Andreas Huber Committed by Android Git Automerger
Browse files

am 4979601f: Make the -o option actually terminate.

parents e932ea5d 4979601f
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -85,6 +85,7 @@ static void playSource(OMXClient *client, const sp<MediaSource> &source) {
    if (gPlaybackAudio) {
        AudioPlayer *player = new AudioPlayer(NULL);
        player->setSource(rawSource);
        rawSource.clear();

        player->start(true /* sourceAlreadyStarted */);

@@ -95,6 +96,8 @@ static void playSource(OMXClient *client, const sp<MediaSource> &source) {

        delete player;
        player = NULL;

        return;
    } else if (gReproduceBug >= 3 && gReproduceBug <= 5) {
        int64_t durationUs;
        CHECK(meta->findInt64(kKeyDuration, &durationUs));