plugins: don't fail if there is no overlay composition to apply.

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.
This commit is contained in:
Gwenole Beauchesne 2013-04-03 15:06:46 +02:00
parent cadc42eafe
commit 378ea2e237

View 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);
}