mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-19 22:05:58 +00:00
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
1 changed files with 3 additions and 0 deletions
|
@ -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…
Reference in a new issue