mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
videomixer: Maintain z-order when new pad are added
https://bugzilla.gnome.org/show_bug.cgi?id=701109
This commit is contained in:
parent
5532989728
commit
cd30a81ee3
1 changed files with 2 additions and 1 deletions
|
@ -1874,7 +1874,8 @@ gst_videomixer2_request_new_pad (GstElement * element,
|
||||||
mixcol->end_time = -1;
|
mixcol->end_time = -1;
|
||||||
|
|
||||||
/* Keep an internal list of mixpads for zordering */
|
/* Keep an internal list of mixpads for zordering */
|
||||||
mix->sinkpads = g_slist_append (mix->sinkpads, mixpad);
|
mix->sinkpads = g_slist_insert_sorted (mix->sinkpads, mixpad,
|
||||||
|
(GCompareFunc) pad_zorder_compare);
|
||||||
mix->numpads++;
|
mix->numpads++;
|
||||||
GST_VIDEO_MIXER2_UNLOCK (mix);
|
GST_VIDEO_MIXER2_UNLOCK (mix);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue