vaapidecode: fix mismatch of the return type
authorHyunjun Ko <zzoon@igalia.com>
Tue, 15 Aug 2017 08:36:51 +0000 (17:36 +0900)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 15 Aug 2017 08:50:22 +0000 (11:50 +0300)
https://bugzilla.gnome.org/show_bug.cgi?id=786307

gst/vaapi/gstvaapidecode.c

index d5747d3..71c026a 100644 (file)
@@ -984,7 +984,8 @@ gst_vaapidecode_reset (GstVaapiDecode * decode, GstCaps * caps,
           return TRUE;
       }
     }
-    return gst_vaapi_decoder_reset (decode->decoder);
+    return (gst_vaapi_decoder_reset (decode->decoder) ==
+        GST_VAAPI_DECODER_STATUS_SUCCESS);
   }
 
   return gst_vaapidecode_create (decode, caps);