Commit 8b20603f authored by Tim-Philipp Müller's avatar Tim-Philipp Müller

rtspsrc: answer URI query

Without this, something also answered the query
with TRUE but without setting a uri, not sure
what that was..
parent bc252d29
...@@ -265,6 +265,7 @@ static GstRTSPResult gst_rtspsrc_close (GstRTSPSrc * src, gboolean async, ...@@ -265,6 +265,7 @@ static GstRTSPResult gst_rtspsrc_close (GstRTSPSrc * src, gboolean async,
static gboolean gst_rtspsrc_uri_set_uri (GstURIHandler * handler, static gboolean gst_rtspsrc_uri_set_uri (GstURIHandler * handler,
const gchar * uri, GError ** error); const gchar * uri, GError ** error);
static gchar *gst_rtspsrc_uri_get_uri (GstURIHandler * handler);
static gboolean gst_rtspsrc_activate_streams (GstRTSPSrc * src); static gboolean gst_rtspsrc_activate_streams (GstRTSPSrc * src);
static gboolean gst_rtspsrc_loop (GstRTSPSrc * src); static gboolean gst_rtspsrc_loop (GstRTSPSrc * src);
...@@ -2100,6 +2101,18 @@ gst_rtspsrc_handle_src_query (GstPad * pad, GstObject * parent, ...@@ -2100,6 +2101,18 @@ gst_rtspsrc_handle_src_query (GstPad * pad, GstObject * parent,
} }
break; break;
} }
case GST_QUERY_URI:
{
gchar *uri;
uri = gst_rtspsrc_uri_get_uri (GST_URI_HANDLER (src));
if (uri != NULL) {
gst_query_set_uri (query, uri);
g_free (uri);
res = TRUE;
}
break;
}
default: default:
{ {
GstPad *target = gst_ghost_pad_get_target (GST_GHOST_PAD_CAST (pad)); GstPad *target = gst_ghost_pad_get_target (GST_GHOST_PAD_CAST (pad));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment