[vlc-commits] Don't silently drop late frames

Denis Charmet git at videolan.org
Sat Feb 15 15:20:08 CET 2014


vlc | branch: master | Denis Charmet <typx at dinauz.org> | Sat Feb 15 15:16:29 2014 +0100| [dc05b32f33d4d487c7f431e1ab16c151e0745cf3] | committer: Denis Charmet

Don't silently drop late frames

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=dc05b32f33d4d487c7f431e1ab16c151e0745cf3
---

 modules/codec/avcodec/video.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index e8000e6..b62ea93 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -492,13 +492,13 @@ picture_t *DecodeVideo( decoder_t *p_dec, block_t **pp_block )
     {
         if( p_sys->i_pts > VLC_TS_INVALID )
         {
-            msg_Err( p_dec, "more than 5 seconds of late video -> "
-                     "dropping frame (computer too slow ?)" );
             p_sys->i_pts = VLC_TS_INVALID; /* To make sure we recover properly */
         }
         if( p_block )
             block_Release( p_block );
         p_sys->i_late_frames--;
+        msg_Err( p_dec, "more than 5 seconds of late video -> "
+                 "dropping frame (computer too slow ?)" );
         return NULL;
     }
 
@@ -521,6 +521,7 @@ picture_t *DecodeVideo( decoder_t *p_dec, block_t **pp_block )
             p_sys->i_late_frames--; /* needed else it will never be decrease */
             if( p_block )
                 block_Release( p_block );
+            msg_Warn( p_dec, "More than 4 late frames, dropping frame" );
             return NULL;
         }
     }



More information about the vlc-commits mailing list