Make the -o option actually terminate.

Change-Id: I91b70ee5c3e1fc9b8bb645e219af296867692e65
This commit is contained in:
Andreas Huber
2010-04-21 15:47:15 -07:00
parent c05ab485e4
commit 4979601f88

View File

@@ -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));