From c225da975515892952602cd3b1e24efc0cceaa4d Mon Sep 17 00:00:00 2001 From: Andreas Huber Date: Thu, 16 Sep 2010 14:55:48 -0700 Subject: Make sure stagefright -o terminates even if we're using a raw audio source (such as .wav pcm) Change-Id: Iec809df89e6b75706cf5b1ce21006c2e217e018f --- cmds/stagefright/stagefright.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cmds') diff --git a/cmds/stagefright/stagefright.cpp b/cmds/stagefright/stagefright.cpp index 4a1d27b..8ab94ad 100644 --- a/cmds/stagefright/stagefright.cpp +++ b/cmds/stagefright/stagefright.cpp @@ -60,7 +60,7 @@ static int64_t getNowUs() { return (int64_t)tv.tv_usec + tv.tv_sec * 1000000ll; } -static void playSource(OMXClient *client, const sp &source) { +static void playSource(OMXClient *client, sp &source) { sp meta = source->getFormat(); const char *mime; @@ -81,6 +81,8 @@ static void playSource(OMXClient *client, const sp &source) { } } + source.clear(); + status_t err = rawSource->start(); if (err != OK) { -- cgit v1.1