mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
qtmux: collect pad for sparse stream should be created with lock set to false
Avoids waiting for buffers from sparse streams https://bugzilla.gnome.org/show_bug.cgi?id=737095
This commit is contained in:
parent
6695341583
commit
fd3e8c5672
1 changed files with 3 additions and 1 deletions
|
@ -3464,6 +3464,7 @@ gst_qt_mux_request_new_pad (GstElement * element,
|
|||
GstQTPadSetCapsFunc setcaps_func;
|
||||
gchar *name;
|
||||
gint pad_id;
|
||||
gboolean lock = TRUE;
|
||||
|
||||
if (templ->direction != GST_PAD_SINK)
|
||||
goto wrong_direction;
|
||||
|
@ -3492,6 +3493,7 @@ gst_qt_mux_request_new_pad (GstElement * element,
|
|||
} else {
|
||||
name = g_strdup_printf ("subtitle_%u", qtmux->subtitle_pads++);
|
||||
}
|
||||
lock = FALSE;
|
||||
} else
|
||||
goto wrong_template;
|
||||
|
||||
|
@ -3502,7 +3504,7 @@ gst_qt_mux_request_new_pad (GstElement * element,
|
|||
g_free (name);
|
||||
collect_pad = (GstQTPad *)
|
||||
gst_collect_pads_add_pad (qtmux->collect, newpad, sizeof (GstQTPad),
|
||||
(GstCollectDataDestroyNotify) (gst_qt_mux_pad_reset), TRUE);
|
||||
(GstCollectDataDestroyNotify) (gst_qt_mux_pad_reset), lock);
|
||||
/* set up pad */
|
||||
gst_qt_mux_pad_reset (collect_pad);
|
||||
collect_pad->trak = atom_trak_new (qtmux->context);
|
||||
|
|
Loading…
Reference in a new issue