]> git.sesse.net Git - vlc/blobdiff - plugins/text/intf_rc.c
* Fixed a few warnings with gcc 3.0.
[vlc] / plugins / text / intf_rc.c
index 614622bcb901af300dbd48452ad517c944674764..14b0816867476807a02daa7e942ebe4d24edced2 100644 (file)
@@ -55,9 +55,6 @@
 #include "video.h"
 #include "video_output.h"
 
-#include "main.h"
-
-
 /*****************************************************************************
  * intf_sys_t: description and status of rc interface
  *****************************************************************************/
@@ -212,7 +209,14 @@ static void intf_Run( intf_thread_t *p_intf )
 
                 case 'f':
                 case 'F':
-                    p_main->p_vout->i_changes |= VOUT_FULLSCREEN_CHANGE;
+                    vlc_mutex_lock( &p_vout_bank->lock );
+                    /* XXX: only fullscreen the first video output */
+                    if( p_vout_bank->i_count )
+                    {
+                        p_vout_bank->pp_vout[0]->i_changes
+                                          |= VOUT_FULLSCREEN_CHANGE;
+                    }
+                    vlc_mutex_unlock( &p_vout_bank->lock );
                     break;
 
                 case 'm':