mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
rtspsrc: reset-sync before play
Call reset-sync on the rtpbin before we go to playing. This makes us require SR packets for all streams again before we attempt to sync them. If we don't reset, it might be that we combine SR packets from before and after the PAUSE/PLAYING state change and end up with huge bogus offsets.
This commit is contained in:
parent
519305d14d
commit
3289a2963b
1 changed files with 4 additions and 0 deletions
|
@ -6455,6 +6455,10 @@ gst_rtspsrc_play (GstRTSPSrc * src, GstSegment * segment, gboolean async)
|
|||
* udp sources */
|
||||
gst_rtspsrc_send_dummy_packets (src);
|
||||
|
||||
/* require new SR packets */
|
||||
if (src->manager)
|
||||
g_signal_emit_by_name (src->manager, "reset-sync", NULL);
|
||||
|
||||
gst_rtspsrc_set_state (src, GST_STATE_PLAYING);
|
||||
|
||||
/* construct a control url */
|
||||
|
|
Loading…
Reference in a new issue