]> git.sesse.net Git - vlc/blobdiff - modules/control/rc.c
Remove pl_Release, and rename pl_Hold back to pl_Get
[vlc] / modules / control / rc.c
index 6b5da0b9fe0693cd768eb4995d20761170abac54..db0d9666df2033a27ae83f02a9152e0d822255fa 100644 (file)
@@ -439,7 +439,7 @@ static void RegisterCallbacks( intf_thread_t *p_intf )
 static void Run( intf_thread_t *p_intf )
 {
     input_thread_t * p_input = NULL;
-    playlist_t *     p_playlist = pl_Hold( p_intf );
+    playlist_t *     p_playlist = pl_Get( p_intf );
 
     char p_buffer[ MAX_LINE_LENGTH + 1 ];
     bool b_showpos = var_InheritInteger( p_intf, "rc-show-pos" );
@@ -800,8 +800,6 @@ static void Run( intf_thread_t *p_intf )
         vlc_object_release( p_input );
     }
 
-    pl_Release( p_intf );
-
     var_DelCallback( p_intf->p_libvlc, "volume-change", VolumeChanged, p_intf );
     vlc_restorecancel( canc );
 }