plugins: don't fail if there is no overlay composition to apply.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 3 Apr 2013 13:06:46 +0000 (15:06 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 3 Apr 2013 13:11:01 +0000 (15:11 +0200)
Fix gst_vaapi_apply_composition() to not fail if no overlay composition
was found. i.e. return success (TRUE). This was harmless though extra
debug messages are not nice.

This is a regression introduced by commit 95b8659.

gst/vaapi/gstvaapipluginutil.c

index df31114..b2cc92f 100644 (file)
@@ -339,7 +339,7 @@ gst_vaapi_apply_composition(GstVaapiSurface *surface, GstBuffer *buffer)
         gst_video_buffer_get_overlay_composition(buffer);
 
     if (!composition)
-        return FALSE;
+        return TRUE;
     return gst_vaapi_surface_set_subpictures_from_composition(surface,
             composition, TRUE);
 }