mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 784019 - Reduce mAmpleVideoFrames on Android so we don't starve libstagefright of gralloc buffers r=doublec
This commit is contained in:
parent
5d9050d369
commit
e7de57f05e
@ -401,11 +401,12 @@ MediaDecoderStateMachine::MediaDecoderStateMachine(MediaDecoder* aDecoder,
|
||||
// If we've got more than mAmpleVideoFrames decoded video frames waiting in
|
||||
// the video queue, we will not decode any more video frames until some have
|
||||
// been consumed by the play state machine thread.
|
||||
#ifdef MOZ_WIDGET_GONK
|
||||
// On B2G this is decided by a similar value which varies for each OMX decoder
|
||||
// |OMX_PARAM_PORTDEFINITIONTYPE::nBufferCountMin|. This number must be less
|
||||
// than the OMX equivalent or gecko will think it is chronically starved of
|
||||
// video frames. All decoders seen so far have a value of at least 4.
|
||||
#if defined(MOZ_WIDGET_GONK) || defined(MOZ_MEDIA_PLUGINS)
|
||||
// On B2G and Android this is decided by a similar value which varies for
|
||||
// each OMX decoder |OMX_PARAM_PORTDEFINITIONTYPE::nBufferCountMin|. This
|
||||
// number must be less than the OMX equivalent or gecko will think it is
|
||||
// chronically starved of video frames. All decoders seen so far have a value
|
||||
// of at least 4.
|
||||
mAmpleVideoFrames = Preferences::GetUint("media.video-queue.default-size", 3);
|
||||
#else
|
||||
mAmpleVideoFrames = Preferences::GetUint("media.video-queue.default-size", 10);
|
||||
|
Loading…
Reference in New Issue
Block a user