Commit 7e864e86 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

vout: remove unncessary lock in vout_HoldPicture()

picture_Hold() is reentrant anyway. The vout picture lock protects
the decoder pool. The decoder pool may be modified by picture_Release()
but not by picture_Hold().
parent 98f3a7b3
...@@ -458,11 +458,7 @@ void vout_ReleasePicture(vout_thread_t *vout, picture_t *picture) ...@@ -458,11 +458,7 @@ void vout_ReleasePicture(vout_thread_t *vout, picture_t *picture)
*/ */
void vout_HoldPicture(vout_thread_t *vout, picture_t *picture) void vout_HoldPicture(vout_thread_t *vout, picture_t *picture)
{ {
vlc_mutex_lock(&vout->p->picture_lock);
picture_Hold(picture); picture_Hold(picture);
vlc_mutex_unlock(&vout->p->picture_lock);
} }
/* */ /* */
......
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