mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 15:48:23 +00:00
omxvideodec: Remove spurious unlock in error case
This was forgotton in previous patch. We no long hold the lock when goto invalid_buffer is called. https://bugzilla.gnome.org/show_bug.cgi?id=715192
This commit is contained in:
parent
04e1f76b60
commit
35abdd16d1
1 changed files with 1 additions and 3 deletions
|
@ -1912,13 +1912,12 @@ eos:
|
||||||
|
|
||||||
GST_VIDEO_DECODER_STREAM_LOCK (self);
|
GST_VIDEO_DECODER_STREAM_LOCK (self);
|
||||||
self->downstream_flow_ret = flow_ret;
|
self->downstream_flow_ret = flow_ret;
|
||||||
|
GST_VIDEO_DECODER_STREAM_UNLOCK (self);
|
||||||
|
|
||||||
/* Here we fallback and pause the task for the EOS case */
|
/* Here we fallback and pause the task for the EOS case */
|
||||||
if (flow_ret != GST_FLOW_OK)
|
if (flow_ret != GST_FLOW_OK)
|
||||||
goto flow_error;
|
goto flow_error;
|
||||||
|
|
||||||
GST_VIDEO_DECODER_STREAM_UNLOCK (self);
|
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1958,7 +1957,6 @@ invalid_buffer:
|
||||||
("Invalid sized input buffer"));
|
("Invalid sized input buffer"));
|
||||||
gst_pad_push_event (GST_VIDEO_DECODER_SRC_PAD (self), gst_event_new_eos ());
|
gst_pad_push_event (GST_VIDEO_DECODER_SRC_PAD (self), gst_event_new_eos ());
|
||||||
gst_omx_video_dec_pause_loop (self, GST_FLOW_NOT_NEGOTIATED);
|
gst_omx_video_dec_pause_loop (self, GST_FLOW_NOT_NEGOTIATED);
|
||||||
GST_VIDEO_DECODER_STREAM_UNLOCK (self);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue