mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
mimdec: fix open error checking
Coverity 206364
This commit is contained in:
parent
956be9a018
commit
0e3c1f6e3a
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue