ducatividdec: print error when there actually is one
[glsdk/gst-plugin-ducati.git] / src / gstducatividdec.c
index 7690955a4f362ac78b62f83109df5cb57fd99e4c..ebb852d5efdb3ba355e4e51cf3512e400975be32 100644 (file)
@@ -317,10 +317,10 @@ codec_process (GstDucatiVidDec * self, gboolean send, gboolean flush,
 
     err = VIDDEC3_control (self->codec, XDM_GETSTATUS,
         self->dynParams, self->status);
-    if (!err) {
+    if (err) {
       GST_WARNING_OBJECT (self, "XDM_GETSTATUS: err=%d, extendedError=%08x",
           err, self->status->extendedError);
-      gst_ducati_log_extended_error_info (self->outArgs->extendedError);
+      gst_ducati_log_extended_error_info (self->status->extendedError);
     }
 
     if (flush)