summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/timedtext
diff options
context:
space:
mode:
authorInsun Kang <insun@google.com>2012-03-15 23:04:43 +0900
committerInsun Kang <insun@google.com>2012-03-16 16:00:48 +0900
commit7c5afe93c9ca2f9f3958663bc3fa9649ec2f5331 (patch)
tree9feedb389b7a89aed380d5b603355f7359a07d3d /media/libstagefright/timedtext
parent49f306f863b14f8bfc3b405ebfd3a2fb2b403c15 (diff)
downloadframeworks_av-7c5afe93c9ca2f9f3958663bc3fa9649ec2f5331.zip
frameworks_av-7c5afe93c9ca2f9f3958663bc3fa9649ec2f5331.tar.gz
frameworks_av-7c5afe93c9ca2f9f3958663bc3fa9649ec2f5331.tar.bz2
Fix a bug in MediaPlayer's addExternalSource().
Change-Id: I035cbfb7acccc7ff88d659861ece7d0f61314fda
Diffstat (limited to 'media/libstagefright/timedtext')
-rw-r--r--media/libstagefright/timedtext/TimedTextDriver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libstagefright/timedtext/TimedTextDriver.cpp b/media/libstagefright/timedtext/TimedTextDriver.cpp
index ed83894..8ee15f8 100644
--- a/media/libstagefright/timedtext/TimedTextDriver.cpp
+++ b/media/libstagefright/timedtext/TimedTextDriver.cpp
@@ -175,7 +175,7 @@ status_t TimedTextDriver::addOutOfBandTextSource(
}
sp<TimedTextSource> source;
- if (strcasecmp(mimeType, MEDIA_MIMETYPE_TEXT_SUBRIP)) {
+ if (strcasecmp(mimeType, MEDIA_MIMETYPE_TEXT_SUBRIP) == 0) {
source = TimedTextSource::CreateTimedTextSource(
dataSource, TimedTextSource::OUT_OF_BAND_FILE_SRT);
}