[vlc-devel] [PATCH] decoder: force output the first picture

Zhao Zhili quinkblack at foxmail.com
Fri Jan 12 06:00:39 CET 2018


---
  src/input/decoder.c | 3 +--
  1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/input/decoder.c b/src/input/decoder.c
index 0d3df97934..32cf7df851 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -1028,9 +1028,8 @@ static int DecoderPlayVideo( decoder_t *p_dec, 
picture_t *p_picture,

      DecoderWaitUnblock( p_dec );

-    if( p_owner->b_waiting )
+    if( p_owner->b_first )
      {
-        assert( p_owner->b_first );
          msg_Dbg( p_dec, "Received first picture" );
          p_owner->b_first = false;
          p_picture->b_force = true;
-- 
2.16.0-rc1

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-decoder-force-output-the-first-picture.patch
Type: text/x-patch
Size: 806 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20180112/d7f7621f/attachment.bin>


More information about the vlc-devel mailing list