mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-29 18:48:44 +00:00
encodebin: Tear down old profiles when setting new ones
In NULL/READY, we should be able to switch profiles on encodebin, this patch makes it tear down old profiles when new ones are set if in NULL/READY states https://bugzilla.gnome.org/show_bug.cgi?id=644416
This commit is contained in:
parent
8c13488022
commit
4ee738be59
1 changed files with 3 additions and 3 deletions
|
@ -1698,9 +1698,9 @@ gst_encode_bin_set_profile (GstEncodeBin * ebin, GstEncodingProfile * profile)
|
|||
}
|
||||
|
||||
/* If we're not active, we can deactivate the previous profile */
|
||||
if (ebin->profile)
|
||||
gst_encoding_profile_unref (ebin->profile);
|
||||
ebin->profile = NULL;
|
||||
if (ebin->profile) {
|
||||
gst_encode_bin_tear_down_profile (ebin);
|
||||
}
|
||||
|
||||
return gst_encode_bin_setup_profile (ebin, profile);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue