omxvideodec: don't unref caps before logging field from it
authorAurélien Zanelli <aurelien.zanelli@parrot.com>
Wed, 16 Apr 2014 09:00:55 +0000 (11:00 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 17 Apr 2014 07:33:47 +0000 (09:33 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=728322

omx/gstomxvideodec.c

index 79ed1f6..d0e7436 100644 (file)
@@ -1628,7 +1628,6 @@ gst_omx_video_dec_negotiate (GstOMXVideoDec * self)
         (GDestroyNotify) gst_omx_video_negotiation_map_free);
     return FALSE;
   }
-  gst_caps_unref (intersection);
 
   GST_OMX_INIT_STRUCT (&param);
   param.nPortIndex = self->dec_out_port->index;
@@ -1658,6 +1657,7 @@ gst_omx_video_dec_negotiate (GstOMXVideoDec * self)
         gst_omx_error_to_string (err), err);
   }
 
+  gst_caps_unref (intersection);
   return (err == OMX_ErrorNone);
 }