gstvaapivideomemory: native format with no derived image
authorVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Mon, 3 Aug 2015 14:33:02 +0000 (16:33 +0200)
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Thu, 13 Aug 2015 15:20:19 +0000 (17:20 +0200)
If USE_NATIVE_FORMATS is defined we bail out before configuring the surface
info based on the derived image configuration.

Signed-off-by: Víctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
https://bugzilla.gnome.org/show_bug.cgi?id=744042

gst/vaapi/gstvaapivideomemory.c

index 21c0299..de4e092 100644 (file)
@@ -668,7 +668,8 @@ allocator_configure_surface_info (GstVaapiDisplay * display,
       GST_VIDEO_INFO_WIDTH (vinfo), GST_VIDEO_INFO_HEIGHT (vinfo));
 
   /* nothing to configure */
-  if (GST_VIDEO_INFO_FORMAT (vinfo) == GST_VIDEO_FORMAT_ENCODED)
+  if (USE_NATIVE_FORMATS ||
+      GST_VIDEO_INFO_FORMAT (vinfo) == GST_VIDEO_FORMAT_ENCODED)
     return;
 
   surface = new_surface (display, vinfo);