summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2021-04-10 01:54:48 +0530
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>2021-04-12 02:56:44 +0000
commitb1dcbf393b5e5ab9f33aefc550a60668cc368782 (patch)
tree823d8c7a8579d23b36e34e591f2187735b2a0f45
parentaf5abe43d081963c3c573741f8f75e8a3bc6fc67 (diff)
rtspsrc: Add more logging for range parsing and seekable
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/939>
-rw-r--r--gst/rtsp/gstrtspsrc.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c
index e66a6aded..6a31741c1 100644
--- a/gst/rtsp/gstrtspsrc.c
+++ b/gst/rtsp/gstrtspsrc.c
@@ -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,
duration);
@@ -7713,6 +7715,12 @@ gst_rtspsrc_parse_range (GstRTSPSrc * src, const gchar * range,
* don't update duration in that case */
if (update_duration && seconds != -1) {
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)