mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 03:00:35 +00:00
rtspsrc: answer URI query
Without this, something also answered the query with TRUE but without setting a uri, not sure what that was..
This commit is contained in:
parent
bc252d29ee
commit
8b20603f8b
1 changed files with 13 additions and 0 deletions
|
@ -265,6 +265,7 @@ static GstRTSPResult gst_rtspsrc_close (GstRTSPSrc * src, gboolean async,
|
|||
|
||||
static gboolean gst_rtspsrc_uri_set_uri (GstURIHandler * handler,
|
||||
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_loop (GstRTSPSrc * src);
|
||||
|
@ -2100,6 +2101,18 @@ gst_rtspsrc_handle_src_query (GstPad * pad, GstObject * parent,
|
|||
}
|
||||
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:
|
||||
{
|
||||
GstPad *target = gst_ghost_pad_get_target (GST_GHOST_PAD_CAST (pad));
|
||||
|
|
Loading…
Reference in a new issue