mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-03 14:08:56 +00:00
rtspsrc: Handle queries and events with no manager
When doing direct output with no session manager, we still want to respond to queries and events from downstream, so install the handlers Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6248>
This commit is contained in:
parent
4d2f000125
commit
57013e1a7c
1 changed files with 7 additions and 1 deletions
|
@ -4404,7 +4404,13 @@ gst_rtspsrc_stream_configure_tcp (GstRTSPSrc * src, GstRTSPStream * stream,
|
|||
/* create a new pad we will use to stream to */
|
||||
name = g_strdup_printf ("stream_%u", stream->id);
|
||||
template = gst_static_pad_template_get (&rtptemplate);
|
||||
stream->channelpad[0] = gst_pad_new_from_template (template, name);
|
||||
pad0 = gst_pad_new_from_template (template, name);
|
||||
stream->channelpad[0] = pad0;
|
||||
|
||||
gst_pad_set_event_function (pad0, gst_rtspsrc_handle_internal_src_event);
|
||||
gst_pad_set_query_function (pad0, gst_rtspsrc_handle_internal_src_query);
|
||||
gst_pad_set_element_private (pad0, src);
|
||||
|
||||
gst_object_unref (template);
|
||||
g_free (name);
|
||||
|
||||
|
|
Loading…
Reference in a new issue