From: Nirbheek Chauhan Date: Fri, 9 Apr 2021 20:24:48 +0000 (+0530) Subject: rtspsrc: Add more logging for range parsing and seekable X-Git-Tag: 1.19.3~509^2~164 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b1dcbf393b5e5ab9f33aefc550a60668cc368782;p=platform%2Fupstream%2Fgstreamer.git rtspsrc: Add more logging for range parsing and seekable Part-of: --- diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c index e66a6ad..6a31741 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)