]> git.sesse.net Git - vlc/commitdiff
mmal/vout: Remove bad locking
authorJulian Scheel <julian@jusst.de>
Fri, 29 Aug 2014 07:09:37 +0000 (09:09 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Mon, 1 Sep 2014 18:44:31 +0000 (21:44 +0300)
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: Julian Scheel <julian@jusst.de>
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
modules/hw/mmal/codec.c

index 687e25b272abbc71c1c9df957d0fa4a3eaad55d2..d2424eaad8c2f82cf29c270dbcc363b8b4019f40 100644 (file)
@@ -449,10 +449,8 @@ static picture_t *decode(decoder_t *dec, block_t **pblock)
      * Configure output port if necessary
      */
     if (sys->output_format) {
-        vlc_mutex_lock(&sys->mutex);
         if (change_output_format(dec) < 0)
             msg_Err(dec, "Failed to change output port format");
-        vlc_mutex_unlock(&sys->mutex);
     }
 
     /*