]> git.sesse.net Git - vlc/blobdiff - mozilla/vlcshell.cpp
Hopefully fix the build for windows.
[vlc] / mozilla / vlcshell.cpp
index 239b992a1a83c16edd6ef21001e7c95adfced97d..6c57dda38aed12551a94266c80ec29cbed8af48c 100644 (file)
@@ -184,11 +184,11 @@ int16 NPP_HandleEvent( NPP instance, void * event )
                 {
                     if( libvlc_playlist_isplaying(p_vlc, NULL) )
                     {
-                        libvlc_media_instance_t *p_mp = libvlc_playlist_get_media_instance(p_vlc, NULL);
+                        libvlc_media_instance_t *p_md = libvlc_playlist_get_media_instance(p_vlc, NULL);
                         if( p_md )
                         {
-                            libvlc_toggle_fullscreen(p_mp, NULL);
-                            libvlc_media_instance_destroy_and_release(p_mp);
+                            libvlc_toggle_fullscreen(p_md, NULL);
+                            libvlc_media_instance_release(p_md);
                         }
                     }
                 }
@@ -227,7 +227,7 @@ int16 NPP_HandleEvent( NPP instance, void * event )
                                 area.bottom = npwindow.height;
                                 libvlc_video_redraw_rectangle(p_md, &area, NULL);
                             }
-                            libvlc_media_instance_destroy_and_detach(p_md);
+                            libvlc_media_instance_release(p_md);
                         }
                     }
                 }