surface: destroy derived image
authorVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Thu, 7 Apr 2016 16:03:42 +0000 (18:03 +0200)
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Thu, 7 Apr 2016 16:25:56 +0000 (18:25 +0200)
commitbb0b8ce7ab97939aadf2d40c09e6323c37bae4e9
tree85c09c6971b8114b477f317ebe1910acbef3d7e1
parent506c9e2b5bbc50730b0083598b346b0fcc41ec78
surface: destroy derived image

If gst_vaapi_image_new_with_image() fails, the created derived image should be
destroyed, otherwise the surface cannot be processed because is being used.

https://bugzilla.gnome.org/show_bug.cgi?id=764607
gst-libs/gst/vaapi/gstvaapisurface.c