mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-07-28 17:25:05 +00:00
splitmuxsink: Give internal queues useful names
Makes debug output more useful
This commit is contained in:
parent
cbfa4531ee
commit
5ae55a4633
|
@ -2562,7 +2562,7 @@ gst_splitmux_sink_request_new_pad (GstElement * element,
|
||||||
GstPad *res = NULL;
|
GstPad *res = NULL;
|
||||||
GstElement *q;
|
GstElement *q;
|
||||||
GstPad *q_sink = NULL, *q_src = NULL;
|
GstPad *q_sink = NULL, *q_src = NULL;
|
||||||
gchar *gname;
|
gchar *gname, *qname;
|
||||||
gboolean is_video = FALSE;
|
gboolean is_video = FALSE;
|
||||||
MqStreamCtx *ctx;
|
MqStreamCtx *ctx;
|
||||||
|
|
||||||
|
@ -2667,8 +2667,12 @@ gst_splitmux_sink_request_new_pad (GstElement * element,
|
||||||
else
|
else
|
||||||
gname = g_strdup (name);
|
gname = g_strdup (name);
|
||||||
|
|
||||||
if ((q = create_element (splitmux, "queue", NULL, FALSE)) == NULL)
|
qname = g_strdup_printf ("queue_%s", gname);
|
||||||
|
if ((q = create_element (splitmux, "queue", qname, FALSE)) == NULL) {
|
||||||
|
g_free (qname);
|
||||||
goto fail;
|
goto fail;
|
||||||
|
}
|
||||||
|
g_free (qname);
|
||||||
|
|
||||||
gst_element_set_state (q, GST_STATE_TARGET (splitmux));
|
gst_element_set_state (q, GST_STATE_TARGET (splitmux));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue