summaryrefslogtreecommitdiffstats
path: root/media/libmediaplayerservice/nuplayer/NuPlayerDecoder.h
diff options
context:
space:
mode:
authorAndy Hung <hunga@google.com>2014-12-03 11:47:36 -0800
committerAndy Hung <hunga@google.com>2014-12-03 16:13:50 -0800
commit202bce11a7f66f27e6dbb6d154ddc123aa62513d (patch)
tree390b83dacc286717243ba6e3c1173c9e2f01b376 /media/libmediaplayerservice/nuplayer/NuPlayerDecoder.h
parent9a1c8892f6835325db6931529dc74bf98cf0aee8 (diff)
downloadframeworks_av-202bce11a7f66f27e6dbb6d154ddc123aa62513d.zip
frameworks_av-202bce11a7f66f27e6dbb6d154ddc123aa62513d.tar.gz
frameworks_av-202bce11a7f66f27e6dbb6d154ddc123aa62513d.tar.bz2
Fix NuPlayer assertion on failure to create AudioTrack
Under heavy media load or monkey/stress testing, more than 32 AudioTracks may be created or memory resources may be scarce. Remove the assertion on failure to create AudioTrack and signal MEDIA_ERROR. Bug: 17319843 Change-Id: I5d4e200b5f50d800046851a33e035cdc6ff10075
Diffstat (limited to 'media/libmediaplayerservice/nuplayer/NuPlayerDecoder.h')
-rw-r--r--media/libmediaplayerservice/nuplayer/NuPlayerDecoder.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/media/libmediaplayerservice/nuplayer/NuPlayerDecoder.h b/media/libmediaplayerservice/nuplayer/NuPlayerDecoder.h
index 2c08f0d..1bfa94f 100644
--- a/media/libmediaplayerservice/nuplayer/NuPlayerDecoder.h
+++ b/media/libmediaplayerservice/nuplayer/NuPlayerDecoder.h
@@ -53,7 +53,6 @@ private:
kWhatRenderBuffer = 'rndr',
};
- sp<AMessage> mNotify;
sp<NativeWindowWrapper> mNativeWindow;
sp<Source> mSource;
@@ -83,12 +82,10 @@ private:
bool mIsSecure;
bool mFormatChangePending;
- int32_t mBufferGeneration;
bool mPaused;
bool mResumePending;
AString mComponentName;
- void handleError(int32_t err);
bool handleAnInputBuffer();
bool handleAnOutputBuffer();