diff options
author | Seungha Yang <seungha@centricular.com> | 2020-06-16 19:34:01 +0900 |
---|---|---|
committer | Seungha Yang <seungha@centricular.com> | 2020-06-16 19:35:30 +0900 |
commit | 8b4f18d53be27be87d2299c1dcecbd7d2423b5d3 (patch) | |
tree | 602fb48c208e8964a444b7f6a9ad711105506ddd | |
parent | 536ff4776fa424ee24f374b7e0461cba232923c6 (diff) |
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/629>
-rw-r--r-- | gst/rtsp/gstrtspsrc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c index 1f91bbfaaa..603bdf0982 100644 --- a/gst/rtsp/gstrtspsrc.c +++ b/gst/rtsp/gstrtspsrc.c @@ -3057,7 +3057,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)); @@ -3079,9 +3079,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; @@ -3091,6 +3091,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, src->is_live, 0, -1); + res = TRUE; break; } default: |