mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
rtspsrc: also set base_time on src after flush
timestamps following flush/seek should be consistent between UDP and TCP interleaved case. Fixes #580851.(b).
This commit is contained in:
parent
20c7be5741
commit
734548a34f
1 changed files with 5 additions and 1 deletions
|
@ -1317,11 +1317,12 @@ gst_rtspsrc_flush (GstRTSPSrc * src, gboolean flush)
|
||||||
gst_rtspsrc_push_event (src, event);
|
gst_rtspsrc_push_event (src, event);
|
||||||
gst_rtspsrc_loop_send_cmd (src, cmd, flush);
|
gst_rtspsrc_loop_send_cmd (src, cmd, flush);
|
||||||
|
|
||||||
/* */
|
/* make running time start start at 0 again */
|
||||||
for (walk = src->streams; walk; walk = g_list_next (walk)) {
|
for (walk = src->streams; walk; walk = g_list_next (walk)) {
|
||||||
GstRTSPStream *stream = (GstRTSPStream *) walk->data;
|
GstRTSPStream *stream = (GstRTSPStream *) walk->data;
|
||||||
|
|
||||||
for (i = 0; i < 2; i++) {
|
for (i = 0; i < 2; i++) {
|
||||||
|
/* for udp case */
|
||||||
if (stream->udpsrc[i]) {
|
if (stream->udpsrc[i]) {
|
||||||
if (base_time != -1)
|
if (base_time != -1)
|
||||||
gst_element_set_base_time (stream->udpsrc[i], base_time);
|
gst_element_set_base_time (stream->udpsrc[i], base_time);
|
||||||
|
@ -1329,6 +1330,9 @@ gst_rtspsrc_flush (GstRTSPSrc * src, gboolean flush)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/* for tcp interleaved case */
|
||||||
|
if (base_time != -1)
|
||||||
|
gst_element_set_base_time (GST_ELEMENT_CAST (src), base_time);
|
||||||
}
|
}
|
||||||
|
|
||||||
static GstRTSPResult
|
static GstRTSPResult
|
||||||
|
|
Loading…
Reference in a new issue