[vlc-commits] [Git][videolan/vlc][master] input: reset demux PTS delay if reading fails

Steve Lhomme (@robUx4) gitlab at videolan.org
Fri Jul 21 09:58:58 UTC 2023



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
53e3b858 by Steve Lhomme at 2023-07-21T09:30:59+00:00
input: reset demux PTS delay if reading fails

It may have set a value and returned an error in the end.

- - - - -


1 changed file:

- src/input/input.c


Changes:

=====================================
src/input/input.c
=====================================
@@ -2841,7 +2841,9 @@ static int InputSourceInit( input_source_t *in, input_thread_t *p_input,
             in->b_title_demux = true;
         }
 
-        demux_Control( in->p_demux, DEMUX_GET_PTS_DELAY, &in->i_pts_delay );
+        if ( demux_Control( in->p_demux, DEMUX_GET_PTS_DELAY, &in->i_pts_delay )
+             != VLC_SUCCESS )
+            in->i_pts_delay = 0;
         if( in->i_pts_delay > INPUT_PTS_DELAY_MAX )
             in->i_pts_delay = INPUT_PTS_DELAY_MAX;
         else if( in->i_pts_delay < 0 )



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/53e3b85860a5ea4693c23a664e3af4d937a40068

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/53e3b85860a5ea4693c23a664e3af4d937a40068
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list