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
_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to