mirror of
https://code.videolan.org/videolan/vlc
synced 2024-10-07 03:56:28 +02:00
* modules/gui/skins/src/*: forgot a few references to the channels server.
This commit is contained in:
parent
cf3c9805ef
commit
3c587bc8cd
@ -2,7 +2,7 @@
|
||||
* event.cpp: Event class
|
||||
*****************************************************************************
|
||||
* Copyright (C) 2003 VideoLAN
|
||||
* $Id: event.cpp,v 1.14 2003/05/05 16:09:40 gbazin Exp $
|
||||
* $Id: event.cpp,v 1.15 2003/05/05 16:29:57 gbazin Exp $
|
||||
*
|
||||
* Authors: Olivier Teulière <ipkiss@via.ecp.fr>
|
||||
* Emmanuel Puig <karibu@via.ecp.fr>
|
||||
@ -240,9 +240,6 @@ void Event::CreateEvent()
|
||||
char *para2 = new char[MAX_PARAM_SIZE];
|
||||
char *para3 = new char[MAX_PARAM_SIZE];
|
||||
|
||||
// Buffer to create strings
|
||||
char *buf;
|
||||
|
||||
// Scan the event
|
||||
int scan = sscanf( EventDesc.c_str(),
|
||||
"%[^(](%[^,)],%[^,)],%[^,)])", msg, para1, para2, para3 );
|
||||
|
@ -2,7 +2,7 @@
|
||||
* vlcproc.cpp: VlcProc class
|
||||
*****************************************************************************
|
||||
* Copyright (C) 2003 VideoLAN
|
||||
* $Id: vlcproc.cpp,v 1.20 2003/05/05 16:09:40 gbazin Exp $
|
||||
* $Id: vlcproc.cpp,v 1.21 2003/05/05 16:29:57 gbazin Exp $
|
||||
*
|
||||
* Authors: Olivier Teulière <ipkiss@via.ecp.fr>
|
||||
* Emmanuel Puig <karibu@via.ecp.fr>
|
||||
@ -593,8 +593,6 @@ void VlcProc::ChangeVolume( unsigned int msg, long param )
|
||||
//---------------------------------------------------------------------------
|
||||
void VlcProc::AddNetworkUDP( int port )
|
||||
{
|
||||
config_PutInt( p_intf, "network-channel", VLC_FALSE );
|
||||
|
||||
// Build source name
|
||||
char *s_port = new char[5];
|
||||
sprintf( s_port, "%i", port );
|
||||
@ -610,31 +608,4 @@ void VlcProc::AddNetworkUDP( int port )
|
||||
InterfaceRefresh();
|
||||
}
|
||||
//---------------------------------------------------------------------------
|
||||
void VlcProc::AddNetworkChannelServer( char *server )
|
||||
{
|
||||
char *name = new char[MAX_PARAM_SIZE];
|
||||
int port = 0;
|
||||
|
||||
// Scan the server address
|
||||
int scan = sscanf( server, "%[^:]:%i", name, &port );
|
||||
|
||||
if( scan != 2)
|
||||
{
|
||||
msg_Err( p_intf, "Invalid channel server: %s", server );
|
||||
delete[] name;
|
||||
return;
|
||||
}
|
||||
|
||||
config_PutInt( p_intf, "network-channel", VLC_TRUE );
|
||||
config_PutPsz( p_intf, "channel-server", name );
|
||||
config_PutInt( p_intf, "channel-port", port );
|
||||
|
||||
if( p_intf->p_vlc->p_channel == NULL )
|
||||
{
|
||||
network_ChannelCreate( p_intf );
|
||||
}
|
||||
|
||||
delete[] name;
|
||||
}
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
* vlcproc.h: VlcProc class
|
||||
*****************************************************************************
|
||||
* Copyright (C) 2003 VideoLAN
|
||||
* $Id: vlcproc.h,v 1.4 2003/04/15 20:33:58 karibu Exp $
|
||||
* $Id: vlcproc.h,v 1.5 2003/05/05 16:29:57 gbazin Exp $
|
||||
*
|
||||
* Authors: Olivier Teulière <ipkiss@via.ecp.fr>
|
||||
* Emmanuel Puig <karibu@via.ecp.fr>
|
||||
@ -53,7 +53,6 @@ class VlcProc
|
||||
void FullScreen();
|
||||
void ChangeVolume( unsigned int msg, long param );
|
||||
void AddNetworkUDP( int port );
|
||||
void AddNetworkChannelServer( char *server );
|
||||
|
||||
void InterfaceRefresh( bool All = false );
|
||||
void EnabledEvent( string type, bool state );
|
||||
|
Loading…
Reference in New Issue
Block a user