mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
plugins: don't destroy sink pad allocator
Don't destroy sink pad allocator at _set_caps() because it will be done at ensure_sinkpad_buffer_pool() if it is required.
This commit is contained in:
parent
ec364858b1
commit
8953126374
1 changed files with 0 additions and 1 deletions
|
@ -742,7 +742,6 @@ gst_vaapi_plugin_base_set_caps (GstVaapiPluginBase * plugin, GstCaps * incaps,
|
||||||
if (incaps && incaps != plugin->sinkpad_caps) {
|
if (incaps && incaps != plugin->sinkpad_caps) {
|
||||||
if (!gst_video_info_from_caps (&plugin->sinkpad_info, incaps))
|
if (!gst_video_info_from_caps (&plugin->sinkpad_info, incaps))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
g_clear_object (&plugin->sinkpad_allocator);
|
|
||||||
gst_caps_replace (&plugin->sinkpad_caps, incaps);
|
gst_caps_replace (&plugin->sinkpad_caps, incaps);
|
||||||
plugin->sinkpad_caps_is_raw = !gst_caps_has_vaapi_surface (incaps);
|
plugin->sinkpad_caps_is_raw = !gst_caps_has_vaapi_surface (incaps);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue