mimdec: fix open error checking

Coverity 206364
This commit is contained in:
Vincent Penquerc'h 2014-04-09 18:12:58 +01:00
parent 956be9a018
commit 0e3c1f6e3a

View file

@ -302,7 +302,7 @@ gst_mim_dec_change_state (GstElement * element, GstStateChange transition)
case GST_STATE_CHANGE_READY_TO_PAUSED: case GST_STATE_CHANGE_READY_TO_PAUSED:
mimdec->buffer_size = -1; mimdec->buffer_size = -1;
mimdec->dec = mimic_open (); mimdec->dec = mimic_open ();
if (!mimdec) { if (!mimdec->dec) {
GST_ERROR_OBJECT (mimdec, "mimic_open failed"); GST_ERROR_OBJECT (mimdec, "mimic_open failed");
return GST_STATE_CHANGE_FAILURE; return GST_STATE_CHANGE_FAILURE;
} }