omxvideodec: don't unref caps before logging field from it

https://bugzilla.gnome.org/show_bug.cgi?id=728322
This commit is contained in:
Aurélien Zanelli 2014-04-16 11:00:55 +02:00 committed by Sebastian Dröge
parent 21b3c2b16a
commit da4cf3da1f

View file

@ -1628,7 +1628,6 @@ gst_omx_video_dec_negotiate (GstOMXVideoDec * self)
(GDestroyNotify) gst_omx_video_negotiation_map_free); (GDestroyNotify) gst_omx_video_negotiation_map_free);
return FALSE; return FALSE;
} }
gst_caps_unref (intersection);
GST_OMX_INIT_STRUCT (&param); GST_OMX_INIT_STRUCT (&param);
param.nPortIndex = self->dec_out_port->index; 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_omx_error_to_string (err), err);
} }
gst_caps_unref (intersection);
return (err == OMX_ErrorNone); return (err == OMX_ErrorNone);
} }