vlc | branch: master | Thomas Guillem <[email protected]> | Tue Mar 28 10:20:39 2017 +0200| [e73003407c718de0dfee01079fa341e255357da6] | committer: Thomas Guillem
mediacodec: increase hack delay to 2 seconds > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e73003407c718de0dfee01079fa341e255357da6 --- modules/codec/omxil/mediacodec.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/codec/omxil/mediacodec.c b/modules/codec/omxil/mediacodec.c index 2f7fb19..cab628d 100644 --- a/modules/codec/omxil/mediacodec.c +++ b/modules/codec/omxil/mediacodec.c @@ -1266,10 +1266,10 @@ static int QueueBlockLocked(decoder_t *p_dec, block_t *p_in_block, vlc_mutex_unlock(&p_sys->lock); /* Wait for an input buffer. This function returns when a new input - * buffer is available or after 1sec of timeout. */ + * buffer is available or after 2secs of timeout. */ i_index = p_sys->api.dequeue_in(&p_sys->api, p_sys->api.b_direct_rendering ? - INT64_C(1000000) : -1); + INT64_C(2000000) : -1); vlc_mutex_lock(&p_sys->lock); if (p_sys->b_aborted) @@ -1330,7 +1330,7 @@ static int QueueBlockLocked(decoder_t *p_dec, block_t *p_in_block, * the Vout won't release any output buffers, therefore MediaCodec * won't dequeue any input buffers. To work around this issue, * release all output buffers if DecodeBlock is waiting more than - * 1sec for a new input buffer. */ + * 2secs for a new input buffer. */ if (!b_dequeue_timeout) { msg_Warn(p_dec, "Decoder stuck: invalidate all buffers"); _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
