[vlc-commits] display: remove useless lock

Rémi Denis-Courmont git at videolan.org
Mon Dec 31 18:48:11 CET 2018


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Dec 31 18:31:45 2018 +0200| [04a3b87dd4d0a3889ee151a4a2c656ac8c4deddf] | committer: Rémi Denis-Courmont

display: remove useless lock

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=04a3b87dd4d0a3889ee151a4a2c656ac8c4deddf
---

 src/video_output/display.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/src/video_output/display.c b/src/video_output/display.c
index 39e12fda5b..3c9dec4eea 100644
--- a/src/video_output/display.c
+++ b/src/video_output/display.c
@@ -295,10 +295,6 @@ typedef struct {
       * can be done and nothing will be displayed */
     filter_chain_t *converters;
 
-    /* Lock protecting the variables used by
-     * VoutDisplayEvent(ie vout_display_SendEvent) */
-    vlc_mutex_t lock;
-
     atomic_bool reset_pictures;
     picture_pool_t *pool;
 } vout_display_priv_t;
@@ -740,7 +736,6 @@ static vout_display_t *DisplayNew(vout_thread_t *vout,
 
     atomic_init(&osys->reset_pictures, false);
     osys->pool = NULL;
-    vlc_mutex_init(&osys->lock);
 
     osys->source = *source;
     osys->crop.left   = 0;
@@ -802,7 +797,6 @@ static vout_display_t *DisplayNew(vout_thread_t *vout,
     return vd;
 error:
     video_format_Clean(&vd->source);
-    vlc_mutex_destroy(&osys->lock);
     vlc_object_release(vd);
     return NULL;
 }
@@ -826,7 +820,6 @@ void vout_DeleteDisplay(vout_display_t *vd, vout_display_cfg_t *cfg)
 
     video_format_Clean(&vd->source);
     video_format_Clean(&vd->fmt);
-    vlc_mutex_destroy(&osys->lock);
     vlc_object_release(vd);
 }
 



More information about the vlc-commits mailing list