diff options
author | Vincent Penquerc'h <vincent.penquerch@collabora.co.uk> | 2014-04-09 18:12:58 +0100 |
---|---|---|
committer | Vincent Penquerc'h <vincent.penquerch@collabora.co.uk> | 2014-04-09 18:12:58 +0100 |
commit | 0e3c1f6e3a04684c3ef7c87786a559520daf3d20 (patch) | |
tree | eb3d5d244b06b0c77a2d4a6b45ba31473dbd0fae /ext/mimic | |
parent | 956be9a0182560459a49aab23870adb4395e11d1 (diff) | |
download | gstreamer-plugins-bad-0e3c1f6e3a04684c3ef7c87786a559520daf3d20.tar.gz |
mimdec: fix open error checking
Coverity 206364
Diffstat (limited to 'ext/mimic')
-rw-r--r-- | ext/mimic/gstmimdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mimic/gstmimdec.c b/ext/mimic/gstmimdec.c index 07ed04d7f..f9151b2c6 100644 --- a/ext/mimic/gstmimdec.c +++ b/ext/mimic/gstmimdec.c @@ -302,7 +302,7 @@ gst_mim_dec_change_state (GstElement * element, GstStateChange transition) case GST_STATE_CHANGE_READY_TO_PAUSED: mimdec->buffer_size = -1; mimdec->dec = mimic_open (); - if (!mimdec) { + if (!mimdec->dec) { GST_ERROR_OBJECT (mimdec, "mimic_open failed"); return GST_STATE_CHANGE_FAILURE; } |