diff --git a/cmds/stagefright/stagefright.cpp b/cmds/stagefright/stagefright.cpp index 4a1d27b73919c..8ab94adb6204f 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) {