mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
plugins: silence check for direct-rendering mode in video memory.
Fix gst_vaapi_video_allocator_new() to silently check for direct-rendering mode support, and not trigger fatal-criticals if either test surface or image could not be created. Typical case: pixel format mismatch, e.g. NV12 supported by most hardware vs. I420 supported by most software decoders.
This commit is contained in:
parent
33f6415696
commit
eb9dd361f8
1 changed files with 4 additions and 2 deletions
|
@ -401,8 +401,10 @@ gst_vaapi_video_allocator_new(GstVaapiDisplay *display, GstCaps *caps)
|
|||
GST_VIDEO_INFO_FORMAT_STRING(&allocator->surface_info),
|
||||
allocator->has_direct_rendering ? "yes" : "no");
|
||||
} while (0);
|
||||
gst_vaapi_object_unref(surface);
|
||||
gst_vaapi_object_unref(image);
|
||||
if (surface)
|
||||
gst_vaapi_object_unref(surface);
|
||||
if (image)
|
||||
gst_vaapi_object_unref(image);
|
||||
}
|
||||
|
||||
allocator->image_info = *vip;
|
||||
|
|
Loading…
Reference in a new issue