summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeungha Yang <seungha@centricular.com>2020-06-16 19:34:01 +0900
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>2020-09-27 13:28:58 +0000
commit3b48d7288364dfa7afca203cb33157814685b8f3 (patch)
tree73cac0a5048c784947e5209ed5912840fdc78079
parent2d52e4ac1d32caf6fa2d4080601b1736ef146ec8 (diff)
downloadgstreamer-plugins-good-3b48d7288364dfa7afca203cb33157814685b8f3.tar.gz
rtspsrc: Don't return TRUE for unhandled query
Expected return value for unhandled query is FALSE Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/752>
-rw-r--r--gst/rtsp/gstrtspsrc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c
index de46fcdd2..168c5e30d 100644
--- a/gst/rtsp/gstrtspsrc.c
+++ b/gst/rtsp/gstrtspsrc.c
@@ -2947,7 +2947,7 @@ gst_rtspsrc_handle_internal_src_query (GstPad * pad, GstObject * parent,
GstQuery * query)
{
GstRTSPSrc *src;
- gboolean res = TRUE;
+ gboolean res = FALSE;
src = GST_RTSPSRC_CAST (gst_pad_get_element_private (pad));
@@ -2969,9 +2969,9 @@ gst_rtspsrc_handle_internal_src_query (GstPad * pad, GstObject * parent,
switch (format) {
case GST_FORMAT_TIME:
gst_query_set_duration (query, format, src->segment.duration);
+ res = TRUE;
break;
default:
- res = FALSE;
break;
}
break;
@@ -2981,6 +2981,7 @@ gst_rtspsrc_handle_internal_src_query (GstPad * pad, GstObject * parent,
/* we are live with a min latency of 0 and unlimited max latency, this
* result will be updated by the session manager if there is any. */
gst_query_set_latency (query, TRUE, 0, -1);
+ res = TRUE;
break;
}
default: