summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/OMXCodec.cpp
diff options
context:
space:
mode:
authorSuresh Choudhary <sureshc@nvidia.com>2013-07-30 19:00:10 +0530
committerAdam Hampson <ahampson@google.com>2013-08-09 13:36:15 -0700
commit34242ac93467fc364bec435bf961283cd3d6ba0b (patch)
tree9ce8d53e1c4645f1e20f78e94b721d7354c03c93 /media/libstagefright/OMXCodec.cpp
parent46910bdc57c35ac36bd4adcbb76f4f3a590e3f21 (diff)
downloadframeworks_av-34242ac93467fc364bec435bf961283cd3d6ba0b.zip
frameworks_av-34242ac93467fc364bec435bf961283cd3d6ba0b.tar.gz
frameworks_av-34242ac93467fc364bec435bf961283cd3d6ba0b.tar.bz2
StageFright: Removes hacks for Nvidia MPEG2 decoder
Removes the NVIDIA MPEG2 decoder specific hacks in legacy code as Nvidia HW MPEG2 decoder is enabled and tested now. Change-Id: Ifc67e1119d9741551336753f85f9cfdfd3fc8600
Diffstat (limited to 'media/libstagefright/OMXCodec.cpp')
-rw-r--r--media/libstagefright/OMXCodec.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/media/libstagefright/OMXCodec.cpp b/media/libstagefright/OMXCodec.cpp
index 9d349a1..89a51f8 100644
--- a/media/libstagefright/OMXCodec.cpp
+++ b/media/libstagefright/OMXCodec.cpp
@@ -359,12 +359,7 @@ sp<MediaSource> OMXCodec::Create(
observer->setCodec(codec);
err = codec->configureCodec(meta);
-
if (err == OK) {
- if (!strcmp("OMX.Nvidia.mpeg2v.decode", componentName)) {
- codec->mFlags |= kOnlySubmitOneInputBufferAtOneTime;
- }
-
return codec;
}
@@ -1344,8 +1339,7 @@ OMXCodec::OMXCodec(
mLeftOverBuffer(NULL),
mPaused(false),
mNativeWindow(
- (!strncmp(componentName, "OMX.google.", 11)
- || !strcmp(componentName, "OMX.Nvidia.mpeg2v.decode"))
+ (!strncmp(componentName, "OMX.google.", 11))
? NULL : nativeWindow) {
mPortStatus[kPortIndexInput] = ENABLED;
mPortStatus[kPortIndexOutput] = ENABLED;