Changeset 8aa24cfe361b893a626016211e05f41c544f5c1b

Show
Ignore:
Timestamp:
05/22/03 14:00:57 (5 years ago)
Author:
Gildas Bazin <gbazin@videolan.org>
git-committer:
Gildas Bazin <gbazin@videolan.org> 1053604857 +0000
git-parent:

[ac121d997285ab4a36ad1c88941d9a191c9a2275]

git-author:
Gildas Bazin <gbazin@videolan.org> 1053604857 +0000
Message:

* INSTALL.win32: added a small note about running vlc under the msvc debugger.
* modules/gui/wxwindows/*: small fixes.
* modules/access/vcd/*, modules/access/cdda.c: re-activated autodetection of vcd and cdda on win32.
* src/misc/cpu.c, src/stream_output/announce.c: msvc fixes.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • INSTALL.win32

    r3a0e5d2 r8aa24cf  
    1 $Id: INSTALL.win32,v 1.14 2003/05/17 23:57:35 gbazin Exp $ 
     1$Id: INSTALL.win32,v 1.15 2003/05/22 12:00:56 gbazin Exp $ 
    22 
    33INSTALL file for the Windows9x/Me/NT4/2k/XP version of the VLC media player 
     
    4646  is that vlc depends on a lot of 3rd party libraries and building them in 
    4747  MSVC is not convenient and sometimes even impossible. 
     48  ( NOTE: if you want to run vlc under the msvc debugger, you need to run it 
     49    with the --fast-mutex --win9x-cv-method=1 options because the debugger 
     50    usually loses signals sent by PulseEvent() ) 
    4851 
    4952- or on Linux, using the mingw32 cross-compiler. 
  • modules/access/cdda.c

    r467f7bc r8aa24cf  
    33 ***************************************************************************** 
    44 * Copyright (C) 2000 VideoLAN 
    5  * $Id: cdda.c,v 1.3 2003/05/19 20:47:16 gbazin Exp $ 
     5 * $Id: cdda.c,v 1.4 2003/05/22 12:00:56 gbazin Exp $ 
    66 * 
    77 * Authors: Laurent Aimar <fenrir@via.ecp.fr> 
     
    118118    vcddev_t                *vcddev; 
    119119 
    120 #ifdef WIN32 
    121     /* On Win32 we want the CDDA access plugin to be explicitly requested, 
    122      * we end up with lots of problems otherwise */ 
    123     if( !p_input->psz_access || !*p_input->psz_access ) return( -1 ); 
    124 #endif 
    125  
    126120    /* parse the options passed in command line : */ 
    127121    psz_orig = psz_parser = psz_source = strdup( p_input->psz_name ); 
  • modules/access/vcd/cdrom.c

    rdceb5b6 r8aa24cf  
    33 ***************************************************************************** 
    44 * Copyright (C) 1998-2001 VideoLAN 
    5  * $Id: cdrom.c,v 1.11 2003/05/18 15:44:03 gbazin Exp $ 
     5 * $Id: cdrom.c,v 1.12 2003/05/22 12:00:57 gbazin Exp $ 
    66 * 
    77 * Authors: Johan Bilien <jobi@via.ecp.fr> 
     
    102102     */ 
    103103#ifdef WIN32 
    104     if( strlen( psz_dev ) == 1 || 
    105         (strlen( psz_dev ) == 2 && psz_dev[1] == ':') ) 
     104    if( (strlen( psz_dev ) == 2 && psz_dev[1] == ':') ) 
    106105    { 
    107106        b_is_file = 0; 
  • modules/access/vcd/vcd.c

    rdceb5b6 r8aa24cf  
    33 ***************************************************************************** 
    44 * Copyright (C) 2000 VideoLAN 
    5  * $Id: vcd.c,v 1.21 2003/05/18 15:44:03 gbazin Exp $ 
     5 * $Id: vcd.c,v 1.22 2003/05/22 12:00:57 gbazin Exp $ 
    66 * 
    77 * Author: Johan Bilien <jobi@via.ecp.fr> 
     
    104104    vcddev_t                *vcddev; 
    105105 
    106 #ifdef WIN32 
    107     /* On Win32 we want the VCD access plugin to be explicitly requested, 
    108      * we end up with lots of problems otherwise */ 
    109     if( !p_input->psz_access || !*p_input->psz_access ) return( -1 ); 
    110 #endif 
    111  
    112106    /* parse the options passed in command line : */ 
    113107    psz_orig = psz_parser = psz_source = strdup( p_input->psz_name ); 
  • modules/gui/wxwindows/interface.cpp

    r5cd4178 r8aa24cf  
    33 ***************************************************************************** 
    44 * Copyright (C) 2000-2001 VideoLAN 
    5  * $Id: interface.cpp,v 1.31 2003/05/20 23:17:59 gbazin Exp $ 
     5 * $Id: interface.cpp,v 1.32 2003/05/22 12:00:56 gbazin Exp $ 
    66 * 
    77 * Authors: Gildas Bazin <gbazin@netcourrier.com> 
     
    846846    for( size_t i = 0; i < filenames.GetCount(); i++ ) 
    847847        playlist_Add( p_playlist, (const char *)filenames[i].mb_str(), 
    848                       PLAYLIST_APPEND | i ? 0 : PLAYLIST_GO, PLAYLIST_END ); 
     848                      PLAYLIST_APPEND | (i ? 0 : PLAYLIST_GO), PLAYLIST_END ); 
    849849 
    850850    vlc_object_release( p_playlist ); 
  • modules/gui/wxwindows/streamout.cpp

    r5cd4178 r8aa24cf  
    33 ***************************************************************************** 
    44 * Copyright (C) 2000-2001 VideoLAN 
    5  * $Id: streamout.cpp,v 1.13 2003/05/20 23:17:59 gbazin Exp $ 
     5 * $Id: streamout.cpp,v 1.14 2003/05/22 12:00:56 gbazin Exp $ 
    66 * 
    77 * Authors: Gildas Bazin <gbazin@netcourrier.com> 
     
    169169    wxStaticText *mrl_label = new wxStaticText( panel, -1, 
    170170                                                wxU(_("Destination Target:"))); 
    171     mrl_combo = new wxComboBox( panel, MRL_Event, mrl
     171    mrl_combo = new wxComboBox( panel, MRL_Event, wxT("")
    172172                                wxPoint(20,25), wxSize(120, -1), 0, NULL ); 
    173173    mrl_combo->SetToolTip( wxU(_("You can use this field directly by typing " 
     
    216216    main_sizer->Layout(); 
    217217    SetSizerAndFit( main_sizer ); 
    218  
    219     /* Update all the values */ 
    220     //ParseMRL(); 
    221218} 
    222219 
     
    321318 
    322319    if( !transcode.IsEmpty() || !duplicate.IsEmpty() ) 
    323         mrl = wxT("#") + transcode + duplicate
     320        mrl_combo->SetValue( wxT("#") + transcode + duplicate )
    324321    else 
    325         mrl = wxT(""); 
    326  
    327     mrl_combo->SetValue( mrl ); 
     322        mrl_combo->SetValue( wxT("") ); 
    328323} 
    329324 
     
    584579} 
    585580 
    586 #if 0 
    587 void SoutDialog::ParseMRL() 
    588 { 
    589     /* Initialise MRL value */ 
    590     char *psz_sout = config_GetPsz( p_intf, "sout" ); 
    591     if( psz_sout ) 
    592     { 
    593         mrl = wxU(psz_sout); 
    594         free( psz_sout ); 
    595     } 
    596  
    597     /* Parse the MRL */ 
    598     wxString access = mrl.BeforeFirst( wxT('/') ); 
    599     wxString encapsulation = mrl.BeforeFirst( wxT(':') ).AfterFirst(wxT('/')); 
    600  
    601     if( !access.Cmp( wxT("http") ) ) 
    602     { 
    603         i_access_type = HTTP_ACCESS_OUT; 
    604     } 
    605     else if( !access.Cmp( wxT("udp") ) ) 
    606     { 
    607         i_access_type = UDP_ACCESS_OUT; 
    608     } 
    609     else if( !access.Cmp( wxT("rtp") ) ) 
    610     { 
    611         i_access_type = RTP_ACCESS_OUT; 
    612     } 
    613     else 
    614     { 
    615         i_access_type = FILE_ACCESS_OUT; 
    616     } 
    617  
    618     if( !encapsulation.Cmp( wxT("ps") ) ) 
    619     { 
    620         i_encapsulation_type = PS_ENCAPSULATION; 
    621     } 
    622     else if( !encapsulation.Cmp( wxT("avi") ) ) 
    623     { 
    624         i_encapsulation_type = AVI_ENCAPSULATION; 
    625     } 
    626     else if( !encapsulation.Cmp( wxT("ogg") ) ) 
    627     { 
    628         i_encapsulation_type = OGG_ENCAPSULATION; 
    629     } 
    630     else 
    631     { 
    632         i_encapsulation_type = TS_ENCAPSULATION; 
    633     } 
    634  
    635     wxString second_part = mrl.AfterFirst( wxT(':') ); 
    636  
    637     if( i_access_type == FILE_ACCESS_OUT ) 
    638     { 
    639         /* The whole second part of the MRL is the filename */ 
    640         file_combo->SetValue( second_part ); 
    641     } 
    642     else 
    643     { 
    644         /* we've got address:port */ 
    645         wxString address = second_part.BeforeLast( wxT(':') ); 
    646         net_addr->SetValue( address ); 
    647  
    648         long int i_port; 
    649         wxString port = second_part.AfterLast( wxT(':') ); 
    650         if( port.ToLong( &i_port ) ) 
    651         { 
    652             net_port->SetValue( i_port ); 
    653         } 
    654         else 
    655         { 
    656             net_port->SetValue( config_GetInt( p_intf, "server-port" ) ); 
    657         } 
    658     } 
    659  
    660     /* Update access output panel */ 
    661     wxCommandEvent dummy_event; 
    662     dummy_event.SetId( AccessType1_Event + i_access_type ); 
    663     OnAccessTypeChange( dummy_event ); 
    664  
    665     /* Update encapsulation output panel */ 
    666     dummy_event.SetId( EncapsulationRadio1_Event + i_encapsulation_type ); 
    667     OnEncapsulationChange( dummy_event ); 
    668 } 
    669 #endif 
    670  
    671581/***************************************************************************** 
    672582 * Events methods. 
     
    674584void SoutDialog::OnOk( wxCommandEvent& WXUNUSED(event) ) 
    675585{ 
     586    mrl_combo->Append( mrl_combo->GetValue() ); 
     587    mrl = mrl_combo->GetValue(); 
    676588    EndModal( wxID_OK ); 
    677589} 
     
    684596void SoutDialog::OnMRLChange( wxCommandEvent& event ) 
    685597{ 
    686     mrl = event.GetString(); 
     598    //mrl = event.GetString(); 
    687599} 
    688600 
  • src/misc/cpu.c

    rade615b r8aa24cf  
    33 ***************************************************************************** 
    44 * Copyright (C) 1998-2002 VideoLAN 
    5  * $Id: cpu.c,v 1.10 2002/12/06 16:34:08 sam Exp $ 
     5 * $Id: cpu.c,v 1.11 2003/05/22 12:00:57 gbazin Exp $ 
    66 * 
    77 * Authors: Samuel Hocevar <sam@zoy.org> 
     
    286286    return i_capabilities; 
    287287 
     288#elif defined( _MSC_VER ) 
     289    i_capabilities |= CPU_CAPABILITY_FPU; 
     290    return i_capabilities; 
     291 
    288292#else 
    289293    /* default behaviour */ 
  • src/stream_output/announce.c

    rb8443a2 r8aa24cf  
    8585        addr.sin_port        = htons( SAP_PORT ); 
    8686     
    87         setsockopt( p_new->socket, IPPROTO_IP, IP_MULTICAST_TTL, &ttl, sizeof(ttl) ); 
     87        setsockopt( p_new->socket, IPPROTO_IP, IP_MULTICAST_TTL, 
     88                    (void*)&ttl, sizeof(ttl) ); 
    8889      
    89         p_new->addr=(struct sockaddr_in)addr; 
     90        p_new->addr = addr; 
    9091     
    9192        return(p_new);