Commit 59b75775 authored by Julian Scheel's avatar Julian Scheel Committed by Rémi Denis-Courmont

mmal/vout: Remove bad locking

This removes some bad locking. In fact this lock could cause a deadlock on
shutdown as the lock is held by the main thread when shutting down and this
function might be called as a result of shutting the ports down.
Signed-off-by: default avatarJulian Scheel <julian@jusst.de>
Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent 3f12704a
...@@ -449,10 +449,8 @@ static picture_t *decode(decoder_t *dec, block_t **pblock) ...@@ -449,10 +449,8 @@ static picture_t *decode(decoder_t *dec, block_t **pblock)
* Configure output port if necessary * Configure output port if necessary
*/ */
if (sys->output_format) { if (sys->output_format) {
vlc_mutex_lock(&sys->mutex);
if (change_output_format(dec) < 0) if (change_output_format(dec) < 0)
msg_Err(dec, "Failed to change output port format"); msg_Err(dec, "Failed to change output port format");
vlc_mutex_unlock(&sys->mutex);
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment