mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 23:06:49 +00:00
outputselector: check for pending srcpad in _get_property()
If there is a pending srcpad, return it instead of active srcpad in gst_output_selector_get_property() function.
This commit is contained in:
parent
89788ddc1f
commit
b658293925
1 changed files with 2 additions and 1 deletions
|
@ -238,7 +238,8 @@ gst_output_selector_get_property (GObject * object, guint prop_id,
|
|||
switch (prop_id) {
|
||||
case PROP_ACTIVE_PAD:
|
||||
GST_OBJECT_LOCK (object);
|
||||
g_value_set_object (value, sel->active_srcpad);
|
||||
g_value_set_object (value,
|
||||
sel->pending_srcpad ? sel->pending_srcpad : sel->active_srcpad);
|
||||
GST_OBJECT_UNLOCK (object);
|
||||
break;
|
||||
case PROP_RESEND_LATEST:{
|
||||
|
|
Loading…
Reference in a new issue