ducatividdec: print error when there actually is one
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Fri, 29 Jun 2012 12:15:46 +0000 (12:15 +0000)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Tue, 17 Jul 2012 10:17:32 +0000 (10:17 +0000)
(and print the right one while we're at it)

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)