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:
Wim Taymans 2013-06-27 17:02:14 +02:00
parent 519305d14d
commit 3289a2963b

View file

@ -6455,6 +6455,10 @@ gst_rtspsrc_play (GstRTSPSrc * src, GstSegment * segment, gboolean async)
* udp sources */ * udp sources */
gst_rtspsrc_send_dummy_packets (src); 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); gst_rtspsrc_set_state (src, GST_STATE_PLAYING);
/* construct a control url */ /* construct a control url */