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:
Gwenole Beauchesne 2013-06-03 10:22:44 +02:00
parent 33f6415696
commit eb9dd361f8

View file

@ -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;