Commit 3289a296 authored by Wim Taymans's avatar Wim Taymans

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.
parent 519305d1
......@@ -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 */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment