]> git.sesse.net Git - vlc/blobdiff - modules/video_output/x11/xcommon.c
Use pl_Release with the right argument.
[vlc] / modules / video_output / x11 / xcommon.c
index bc185d9cc0a5b46c44c61e1966151e2fdddf6e00..e364eb7f8342fcc81a8a87f1c5da02f8c982b0ba 100644 (file)
@@ -1291,8 +1291,6 @@ static int ManageVideo( vout_thread_t *p_vout )
             {
                 case Button1:
                     {
-                        playlist_t *p_playlist;
-
                         var_Get( p_vout, "mouse-button-down", &val );
                         val.i_int &= ~1;
                         var_Set( p_vout, "mouse-button-down", val );
@@ -1320,7 +1318,6 @@ static int ManageVideo( vout_thread_t *p_vout )
                 case Button3:
                     {
                         intf_thread_t *p_intf;
-                        playlist_t *p_playlist;
 
                         var_Get( p_vout, "mouse-button-down", &val );
                         val.i_int &= ~4;
@@ -1468,7 +1465,7 @@ static int ManageVideo( vout_thread_t *p_vout )
             if( p_playlist != NULL )
             {
                 playlist_Stop( p_playlist );
-                pl_Release( p_playlist );
+                pl_Release( p_vout );
             }
         }
     }