mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-07-04 05:35:53 +00:00
rtspsrc: Add more logging for range parsing and seekable
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/939>
This commit is contained in:
parent
af5abe43d0
commit
b1dcbf393b
|
@ -3186,7 +3186,9 @@ gst_rtspsrc_handle_src_query (GstPad * pad, GstObject * parent,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_LOG_OBJECT (src, "seekable : %d", seekable);
|
GST_LOG_OBJECT (src, "seekable: %d, duration: %" GST_TIME_FORMAT
|
||||||
|
", src->seekable: %f", seekable,
|
||||||
|
GST_TIME_ARGS (src->segment.duration), src->seekable);
|
||||||
|
|
||||||
gst_query_set_seeking (query, GST_FORMAT_TIME, seekable, start,
|
gst_query_set_seeking (query, GST_FORMAT_TIME, seekable, start,
|
||||||
duration);
|
duration);
|
||||||
|
@ -7713,6 +7715,12 @@ gst_rtspsrc_parse_range (GstRTSPSrc * src, const gchar * range,
|
||||||
* don't update duration in that case */
|
* don't update duration in that case */
|
||||||
if (update_duration && seconds != -1) {
|
if (update_duration && seconds != -1) {
|
||||||
segment->duration = seconds;
|
segment->duration = seconds;
|
||||||
|
GST_DEBUG_OBJECT (src, "set duration from range as %" GST_TIME_FORMAT,
|
||||||
|
GST_TIME_ARGS (seconds));
|
||||||
|
} else {
|
||||||
|
GST_DEBUG_OBJECT (src, "not updating existing duration %" GST_TIME_FORMAT
|
||||||
|
" from range %" GST_TIME_FORMAT, GST_TIME_ARGS (segment->duration),
|
||||||
|
GST_TIME_ARGS (seconds));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (segment->rate > 0.0)
|
if (segment->rate > 0.0)
|
||||||
|
|
Loading…
Reference in a new issue