]> git.sesse.net Git - vlc/commitdiff
BeOS / gcc 2.x fixes, patch by Cian Duffy
authorEric Petit <titer@videolan.org>
Wed, 23 Aug 2006 23:32:29 +0000 (23:32 +0000)
committerEric Petit <titer@videolan.org>
Wed, 23 Aug 2006 23:32:29 +0000 (23:32 +0000)
include/libvlc_internal.h
modules/codec/ffmpeg/mux.c
modules/demux/playlist/gvp.c
modules/gui/beos/InterfaceWindow.cpp
src/playlist/item.c

index 6cbc8184ce83b5bead917ab0dadc0a3bb58c1bb4..ebcce893b358dd7ee13b9f33ad91bff2d23e3679 100644 (file)
@@ -32,8 +32,10 @@ extern "C" {
 #include <vlc/vlc.h>
 
 #ifndef WIN32
+#ifndef __BEOS__
 #include <X11/Xlib.h>
 #endif
+#endif
     
 struct libvlc_instance_t
 {
index ea0c5f7abca654960214e084beedbd4e43bba850..7a948593eee224e52922b57c53f2c4fbd239d412 100644 (file)
@@ -79,6 +79,7 @@ static offset_t IOSeek( void *opaque, offset_t offset, int whence );
  *****************************************************************************/
 int E_(OpenMux)( vlc_object_t *p_this )
 {
+    AVOutputFormat *file_oformat; 
     sout_mux_t *p_mux = (sout_mux_t*)p_this;
     sout_mux_sys_t *p_sys;
     AVFormatParameters params, *ap = &params;
@@ -87,7 +88,7 @@ int E_(OpenMux)( vlc_object_t *p_this )
     av_register_all();
 
     /* Find the requested muxer */
-    AVOutputFormat *file_oformat =
+    file_oformat =
         guess_format(NULL, p_mux->p_access->psz_name, NULL);
     if (!file_oformat)
     {
index 8064cdea12751a45253bf611fac1d15bfc7358a8..4a0b3496bd7959e9b86cc5c31e04100eb3258c01 100644 (file)
@@ -100,13 +100,6 @@ static int Demux( demux_t *p_demux )
 {
     demux_sys_t *p_sys = p_demux->p_sys;
 
-    INIT_PLAYLIST_STUFF;
-
-    p_sys->p_playlist = p_playlist;
-    p_sys->p_current = p_current;
-    p_sys->i_parent_id = i_parent_id;
-    p_sys->p_item_in_category = p_item_in_category;
-
     char *psz_line;
     char *psz_attrvalue;
 
@@ -117,6 +110,13 @@ static int Demux( demux_t *p_demux )
     char *psz_title = NULL;
     char *psz_description = NULL;
 
+    INIT_PLAYLIST_STUFF;
+
+    p_sys->p_playlist = p_playlist;
+    p_sys->p_current = p_current;
+    p_sys->i_parent_id = i_parent_id;
+    p_sys->p_item_in_category = p_item_in_category;
+
     while( ( psz_line = stream_ReadLine( p_demux->s ) ) )
     {
         if( *psz_line == '#' )
index 2c1c7c10c4686ece37ee6ac03c125f98396ec84a..84b1db98813001b4288f1b69ac9189a1aae1ccea 100644 (file)
@@ -321,14 +321,14 @@ InterfaceWindow::InterfaceWindow( intf_thread_t * _p_intf, BRect frame,
 
     /* Add the Show menu */
     fShowMenu = new BMenu( _("Window") );
+#if 0    
     ADD_ELLIPSIS( _("Playlist") );
     fShowMenu->AddItem( new BMenuItem( psz_tmp, new BMessage( OPEN_PLAYLIST ), 'P') );
+#endif
     ADD_ELLIPSIS( _("Messages") );
     fShowMenu->AddItem( new BMenuItem( psz_tmp, new BMessage( OPEN_MESSAGES ), 'M' ) );
-#if 0 
     ADD_ELLIPSIS( _("Preferences") );
     fShowMenu->AddItem( new BMenuItem( psz_tmp, new BMessage( OPEN_PREFERENCES ), 'S' ) );
-#endif
     fMenuBar->AddItem( fShowMenu );
 
     // add the media control view after the menubar is complete
index edda2dc55983f5a658b446b59d77e716f222c14f..64127eb3dea2fa6e4e790a7c946b6f995fa648b6 100644 (file)
@@ -360,6 +360,8 @@ void playlist_NodeAddItem( playlist_t *p_playlist, playlist_item_t *p_item,
 playlist_item_t *playlist_ItemToNode( playlist_t *p_playlist,
                                       playlist_item_t *p_item )
 {
+
+    playlist_item_t *p_item_in_category;
     /* What we do
      * Find the input in CATEGORY.
      *  - If we find it
@@ -379,7 +381,7 @@ playlist_item_t *playlist_ItemToNode( playlist_t *p_playlist,
         return p_item;
 
     /** \todo First look if we don't already have it */
-    playlist_item_t *p_item_in_category = playlist_ItemFindFromInputAndRoot(
+    p_item_in_category = playlist_ItemFindFromInputAndRoot(
                                             p_playlist, p_item->p_input->i_id,
                                             p_playlist->p_root_category );