[vlc-devel] [PATCH] input: var: UpdateBookmarksOption: use intermediate variable

Filip Roséen filip at atch.se
Mon Jul 23 14:01:09 CEST 2018


---
 src/input/var.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/input/var.c b/src/input/var.c
index 43c50fd2e2..02a5770e5d 100644
--- a/src/input/var.c
+++ b/src/input/var.c
@@ -230,11 +230,11 @@ static void UpdateBookmarksOption( input_thread_t *p_input )
     {
         *end = vstr.ptr;
         item->i_options = end - orig_beg + 1;
-        vlc_mutex_unlock( &priv->p_item->lock );
+        vlc_mutex_unlock( &item->lock );
     }
     else /* nothing removed, add the usual way */
     {
-        vlc_mutex_unlock( &priv->p_item->lock );
+        vlc_mutex_unlock( &item->lock );
         input_item_AddOption( item, vstr.ptr, VLC_INPUT_OPTION_UNIQUE );
         free( vstr.ptr );
     }
-- 
2.18.0


More information about the vlc-devel mailing list