Merge "Make sure stagefright -o terminates even if we're using a raw audio source (such as .wav pcm)" into gingerbread

This commit is contained in:
Andreas Huber
2010-09-16 15:20:21 -07:00
committed by Android (Google) Code Review

View File

@@ -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<MediaSource> &source) {
static void playSource(OMXClient *client, sp<MediaSource> &source) {
sp<MetaData> meta = source->getFormat();
const char *mime;
@@ -81,6 +81,8 @@ static void playSource(OMXClient *client, const sp<MediaSource> &source) {
}
}
source.clear();
status_t err = rawSource->start();
if (err != OK) {