X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=subprojects%2Fgst-plugins-bad%2Fsys%2Fva%2Fgstvaav1dec.c;h=2c1bb79b92b4a786c37f297a84b663c107bf3210;hb=765adf5325e894b7e53ea73ec9782dadc2da1fa3;hp=10f34323d0c4454d086fe6656326dfa591bf84de;hpb=c8a0d706cae18891af893de844019d6afdadfb64;p=platform%2Fupstream%2Fgstreamer.git diff --git a/subprojects/gst-plugins-bad/sys/va/gstvaav1dec.c b/subprojects/gst-plugins-bad/sys/va/gstvaav1dec.c index 10f3432..2c1bb79 100644 --- a/subprojects/gst-plugins-bad/sys/va/gstvaav1dec.c +++ b/subprojects/gst-plugins-bad/sys/va/gstvaav1dec.c @@ -312,10 +312,11 @@ _create_internal_pool (GstVaAV1Dec * self, gint width, gint height) pool = gst_va_pool_new_with_config (caps, GST_VIDEO_INFO_SIZE (&info), 1, 0, VA_SURFACE_ATTRIB_USAGE_HINT_DECODER, GST_VA_FEATURE_AUTO, allocator, ¶ms); + gst_clear_caps (&caps); + if (!pool) { GST_WARNING_OBJECT (self, "Failed to create internal pool"); gst_object_unref (allocator); - gst_clear_caps (&caps); return NULL; }