validate: fix pad leaks
Pads returned using the playbin get-{audio,video}-pad are reffed. Reviewed-by: Thibault Saunier <tsaunier@gnome.org> Differential Revision: https://phabricator.freedesktop.org/D1027
This commit is contained in:
parent
dc7382017d
commit
5b78110813
@ -358,6 +358,9 @@ _execute_switch_track (GstValidateScenario * scenario,
|
||||
res = GST_VALIDATE_EXECUTE_ACTION_ERROR;
|
||||
}
|
||||
|
||||
if (oldpad)
|
||||
gst_object_unref (oldpad);
|
||||
gst_object_unref (newpad);
|
||||
} else {
|
||||
gst_validate_printf (action, "Disabling track type %s", type);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user