Commit d48ff8b8 authored by Olivier Teulière's avatar Olivier Teulière

* The stream output can't use PS with UDP

 * Added tooltips for the subtitles dialog box
 * Added a missing "delete"
 * Added a menu entry to spawn new interfaces (but it's currently
   disabled, due to a problem with the vlc_list_t struct)
parent ba0ff50c
...@@ -206,11 +206,11 @@ object MainFrameDlg: TMainFrameDlg ...@@ -206,11 +206,11 @@ object MainFrameDlg: TMainFrameDlg
Top = 0 Top = 0
Action = EjectAction Action = EjectAction
end end
object ToolButton1: TToolButton object ToolButtonSep2: TToolButton
Left = 320 Left = 320
Top = 0 Top = 0
Width = 8 Width = 8
Caption = 'ToolButton1' Caption = 'ToolButtonSep2'
ImageIndex = 13 ImageIndex = 13
Style = tbsSeparator Style = tbsSeparator
end end
...@@ -226,11 +226,11 @@ object MainFrameDlg: TMainFrameDlg ...@@ -226,11 +226,11 @@ object MainFrameDlg: TMainFrameDlg
Top = 0 Top = 0
Action = FastAction Action = FastAction
end end
object ToolButtonSep2: TToolButton object ToolButtonSep3: TToolButton
Left = 406 Left = 406
Top = 0 Top = 0
Width = 8 Width = 8
Caption = 'ToolButtonSep2' Caption = 'ToolButtonSep3'
ImageIndex = 9 ImageIndex = 9
Style = tbsSeparator Style = tbsSeparator
end end
...@@ -502,6 +502,15 @@ object MainFrameDlg: TMainFrameDlg ...@@ -502,6 +502,15 @@ object MainFrameDlg: TMainFrameDlg
Tag = 3 Tag = 3
Action = PreferencesAction Action = PreferencesAction
end end
object N4: TMenuItem
Caption = '-'
end
object MenuAddInterface: TMenuItem
Tag = 3
Caption = '&Add interface'
Enabled = False
Hint = 'Spawn a new interface'
end
end end
object MenuControls: TMenuItem object MenuControls: TMenuItem
Tag = 3 Tag = 3
......
...@@ -59,9 +59,10 @@ __published: // IDE-managed Components ...@@ -59,9 +59,10 @@ __published: // IDE-managed Components
TToolButton *ToolButtonEject; TToolButton *ToolButtonEject;
TToolButton *ToolButtonPlay; TToolButton *ToolButtonPlay;
TToolButton *ToolButtonPause; TToolButton *ToolButtonPause;
TToolButton *ToolButtonSep2;
TToolButton *ToolButtonSlow; TToolButton *ToolButtonSlow;
TToolButton *ToolButtonFast; TToolButton *ToolButtonFast;
TToolButton *ToolButtonSep2; TToolButton *ToolButtonSep3;
TToolButton *ToolButtonPlaylist; TToolButton *ToolButtonPlaylist;
TToolButton *ToolButtonPrev; TToolButton *ToolButtonPrev;
TToolButton *ToolButtonNext; TToolButton *ToolButtonNext;
...@@ -137,7 +138,6 @@ __published: // IDE-managed Components ...@@ -137,7 +138,6 @@ __published: // IDE-managed Components
TMenuItem *PopupClose; TMenuItem *PopupClose;
TMenuItem *N9; TMenuItem *N9;
TCSpinEdit *SpinEditChannel; TCSpinEdit *SpinEditChannel;
TToolButton *ToolButton1;
TActionList *ActionList1; TActionList *ActionList1;
TAction *OpenFileAction; TAction *OpenFileAction;
TAction *OpenDiscAction; TAction *OpenDiscAction;
...@@ -157,23 +157,25 @@ __published: // IDE-managed Components ...@@ -157,23 +157,25 @@ __published: // IDE-managed Components
TAction *PreferencesAction; TAction *PreferencesAction;
TAction *MessagesAction; TAction *MessagesAction;
TAction *AboutAction; TAction *AboutAction;
TMenuItem *Control1;
TMenuItem *N5;
TMenuItem *N6;
TMenuItem *N10;
TAction *PrevTitleAction; TAction *PrevTitleAction;
TAction *NextTitleAction; TAction *NextTitleAction;
TAction *PrevChapterAction; TAction *PrevChapterAction;
TAction *NextChapterAction; TAction *NextChapterAction;
TAction *VolumeUpAction;
TAction *VolumeDownAction;
TAction *MuteAction;
TAction *StreamOutputAction;
TAction *AddSubtitlesAction;
TMenuItem *Control1;
TMenuItem *N5;
TMenuItem *N6;
TMenuItem *N10;
TMenuItem *N11; TMenuItem *N11;
TMenuItem *MenuChannel; TMenuItem *MenuChannel;
TMenuItem *PopupChannel; TMenuItem *PopupChannel;
TMenuItem *MenuVolumeUp; TMenuItem *MenuVolumeUp;
TMenuItem *MenuVolumeDown; TMenuItem *MenuVolumeDown;
TMenuItem *MenuMute; TMenuItem *MenuMute;
TAction *VolumeUpAction;
TAction *VolumeDownAction;
TAction *MuteAction;
TMenuItem *MenuADevice; TMenuItem *MenuADevice;
TMenuItem *PopupAudioSettings; TMenuItem *PopupAudioSettings;
TMenuItem *PopupADevice; TMenuItem *PopupADevice;
...@@ -185,9 +187,9 @@ __published: // IDE-managed Components ...@@ -185,9 +187,9 @@ __published: // IDE-managed Components
TMenuItem *N1; TMenuItem *N1;
TMenuItem *PopupVDevice; TMenuItem *PopupVDevice;
TMenuItem *MenuStreamOuput; TMenuItem *MenuStreamOuput;
TAction *StreamOutputAction;
TMenuItem *MenuAddSubtitles; TMenuItem *MenuAddSubtitles;
TAction *AddSubtitlesAction; TMenuItem *N4;
TMenuItem *MenuAddInterface;
void __fastcall TimerManageTimer( TObject *Sender ); void __fastcall TimerManageTimer( TObject *Sender );
void __fastcall TrackBarChange( TObject *Sender ); void __fastcall TrackBarChange( TObject *Sender );
void __fastcall FormClose( TObject *Sender, TCloseAction &Action ); void __fastcall FormClose( TObject *Sender, TCloseAction &Action );
...@@ -222,7 +224,7 @@ __published: // IDE-managed Components ...@@ -222,7 +224,7 @@ __published: // IDE-managed Components
void __fastcall NextTitleActionExecute( TObject *Sender ); void __fastcall NextTitleActionExecute( TObject *Sender );
void __fastcall PrevChapterActionExecute( TObject *Sender ); void __fastcall PrevChapterActionExecute( TObject *Sender );
void __fastcall NextChapterActionExecute( TObject *Sender ); void __fastcall NextChapterActionExecute( TObject *Sender );
void __fastcall AddSubtitlesActionsExecute(TObject *Sender); void __fastcall AddSubtitlesActionsExecute( TObject *Sender );
private: // User declarations private: // User declarations
intf_thread_t *p_intf; intf_thread_t *p_intf;
/* drag and drop handling */ /* drag and drop handling */
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* menu.cpp: functions to handle menu items * menu.cpp: functions to handle menu items
***************************************************************************** *****************************************************************************
* Copyright (C) 2002-2003 VideoLAN * Copyright (C) 2002-2003 VideoLAN
* $Id: menu.cpp,v 1.7 2003/01/19 17:55:18 ipkiss Exp $ * $Id: menu.cpp,v 1.8 2003/01/23 03:33:34 ipkiss Exp $
* *
* Authors: Olivier Teuliere <ipkiss@via.ecp.fr> * Authors: Olivier Teuliere <ipkiss@via.ecp.fr>
* *
...@@ -85,6 +85,40 @@ void __fastcall TMenusGen::VoutVarClick( TObject *Sender ) ...@@ -85,6 +85,40 @@ void __fastcall TMenusGen::VoutVarClick( TObject *Sender )
vlc_object_release( p_vout ); vlc_object_release( p_vout );
} }
/*
* Modules
*/
/* Interface modules: we spawn a new interface */
void __fastcall TMenusGen::InterfaceModuleClick( TObject *Sender )
{
TMenuItem * Item = (TMenuItem *)Sender;
AnsiString IntfName = CleanCaption( Item->Caption );
intf_thread_t *p_newintf;
char *psz_oldmodule = config_GetPsz( p_intf->p_vlc, "intf" );
config_PutPsz( p_intf->p_vlc, "intf", IntfName.c_str() );
p_newintf = intf_Create( p_intf->p_vlc );
config_PutPsz( p_intf->p_vlc, "intf", psz_oldmodule );
if( psz_oldmodule )
{
free( psz_oldmodule );
}
if( p_newintf )
{
p_newintf->b_block = VLC_FALSE;
if( intf_RunThread( p_newintf ) )
{
vlc_object_detach( p_newintf );
intf_Destroy( p_newintf );
}
}
}
/* /*
* Audio * Audio
*/ */
...@@ -258,6 +292,12 @@ __fastcall TMenusGen::TMenusGen( intf_thread_t *_p_intf ) : TObject() ...@@ -258,6 +292,12 @@ __fastcall TMenusGen::TMenusGen( intf_thread_t *_p_intf ) : TObject()
MenuTitle = p_window->MenuTitle; MenuTitle = p_window->MenuTitle;
MenuChapter = p_window->MenuChapter; MenuChapter = p_window->MenuChapter;
PopupNavigation = p_window->PopupNavigation; PopupNavigation = p_window->PopupNavigation;
MenuAddInterface = p_window->MenuAddInterface;
/* Create the "Add interface" menu */
#if 0
SetupModuleMenu( "inerface", MenuAddInterface, InterfaceModuleClick );
#endif
} }
...@@ -463,6 +503,19 @@ int __fastcall TMenusGen::Pos2Data( int title, int chapter ) ...@@ -463,6 +503,19 @@ int __fastcall TMenusGen::Pos2Data( int title, int chapter )
return (int) (( title << 16 ) | ( chapter & 0xffff )); return (int) (( title << 16 ) | ( chapter & 0xffff ));
} }
/* This function deletes all the '&' characters in the caption string,
* because Borland automatically adds one when (and only when!) you click on
* the menuitem. Grrrrr... */
AnsiString __fastcall TMenusGen::CleanCaption( AnsiString Caption )
{
while( Caption.LastDelimiter( "&" ) != 0 )
{
Caption.Delete( Caption.LastDelimiter( "&" ), 1 );
}
return Caption;
}
/**************************************************************************** /****************************************************************************
* VarChange: change a variable in a vlc_object_t * VarChange: change a variable in a vlc_object_t
**************************************************************************** ****************************************************************************
...@@ -475,14 +528,7 @@ void __fastcall TMenusGen::VarChange( vlc_object_t *p_object, ...@@ -475,14 +528,7 @@ void __fastcall TMenusGen::VarChange( vlc_object_t *p_object,
vlc_value_t val; vlc_value_t val;
int i_index; int i_index;
/* We must delete all the '&' characters in the caption string, because AnsiString Caption = CleanCaption( Item->Caption );
* Borland automatically adds one when (and only when!) you click on
* the menuitem. Grrrrr... */
AnsiString Caption = Item->Caption;
while( Caption.LastDelimiter( "&" ) != 0 )
{
Caption.Delete( Caption.LastDelimiter( "&" ), 1 );
}
val.psz_string = Caption.c_str(); val.psz_string = Caption.c_str();
/* set the new value */ /* set the new value */
...@@ -625,6 +671,43 @@ void __fastcall TMenusGen::SetupVarMenu( vlc_object_t *p_object, ...@@ -625,6 +671,43 @@ void __fastcall TMenusGen::SetupVarMenu( vlc_object_t *p_object,
// free( psz_value ); // free( psz_value );
} }
/*****************************************************************************
* SetupModuleMenu: build a menu listing all the modules of a given
capability
*****************************************************************************/
void __fastcall TMenusGen::SetupModuleMenu( const char *psz_capability,
TMenuItem *Root, TNotifyEvent MenuItemClick )
{
module_t * p_parser;
vlc_list_t list;
int i_index;
/* remove previous menu */
Root->Clear();
Root->Enabled = false;
list = vlc_list_find( p_intf, VLC_OBJECT_MODULE, FIND_ANYWHERE );
for( i_index = 0; i_index < list.i_count; i_index++ )
{
p_parser = (module_t *)list.p_values[i_index].p_object ;
if( !strcmp( p_parser->psz_capability, psz_capability ) )
{
TMenuItem *Item = new TMenuItem( Root );
Item->Caption = p_parser->psz_object_name;
Item->Hint = Item->Caption;
Item->OnClick = MenuItemClick;
Root->Add( Item );
}
}
vlc_list_release( &list );
/* be sure that menu is enabled, if there is at least one item */
if( i_index > 0 )
Root->Enabled = true;
}
/***************************************************************************** /*****************************************************************************
* ProgramMenu: update the programs menu of the interface * ProgramMenu: update the programs menu of the interface
***************************************************************************** *****************************************************************************
...@@ -660,9 +743,7 @@ void __fastcall TMenusGen::ProgramMenu( TMenuItem *Root, ...@@ -660,9 +743,7 @@ void __fastcall TMenusGen::ProgramMenu( TMenuItem *Root,
/* check the currently selected program */ /* check the currently selected program */
if( p_pgrm == p_intf->p_sys->p_input->stream.pp_programs[i] ) if( p_pgrm == p_intf->p_sys->p_input->stream.pp_programs[i] )
{
Item->Checked = true; Item->Checked = true;
}
/* add the item to the submenu */ /* add the item to the submenu */
Root->Add( Item ); Root->Add( Item );
...@@ -670,9 +751,7 @@ void __fastcall TMenusGen::ProgramMenu( TMenuItem *Root, ...@@ -670,9 +751,7 @@ void __fastcall TMenusGen::ProgramMenu( TMenuItem *Root,
/* be sure that menu is enabled if more than 1 program */ /* be sure that menu is enabled if more than 1 program */
if( p_intf->p_sys->p_input->stream.i_pgrm_number > 1 ) if( p_intf->p_sys->p_input->stream.i_pgrm_number > 1 )
{
Root->Enabled = true; Root->Enabled = true;
}
} }
/***************************************************************************** /*****************************************************************************
...@@ -699,9 +778,7 @@ void __fastcall TMenusGen::RadioMenu( TMenuItem *Root, AnsiString ItemName, ...@@ -699,9 +778,7 @@ void __fastcall TMenusGen::RadioMenu( TMenuItem *Root, AnsiString ItemName,
if( ( i_item % 10 == 1 ) && ( i_nb > 20 ) ) if( ( i_item % 10 == 1 ) && ( i_nb > 20 ) )
{ {
if( i_item != 1 ) if( i_item != 1 )
{
Root->Add( ItemGroup ); Root->Add( ItemGroup );
}
Name.sprintf( "%ss %d to %d", ItemName, i_item, i_item + 9 ); Name.sprintf( "%ss %d to %d", ItemName, i_item, i_item + 9 );
ItemGroup = new TMenuItem( Root ); ItemGroup = new TMenuItem( Root );
...@@ -728,9 +805,7 @@ void __fastcall TMenusGen::RadioMenu( TMenuItem *Root, AnsiString ItemName, ...@@ -728,9 +805,7 @@ void __fastcall TMenusGen::RadioMenu( TMenuItem *Root, AnsiString ItemName,
/* check the currently selected chapter */ /* check the currently selected chapter */
if( i_selected == i_item ) if( i_selected == i_item )
{
Item->Checked = true; Item->Checked = true;
}
/* setup signal handling */ /* setup signal handling */
Item->OnClick = MenuItemClick; Item->OnClick = MenuItemClick;
...@@ -743,15 +818,11 @@ void __fastcall TMenusGen::RadioMenu( TMenuItem *Root, AnsiString ItemName, ...@@ -743,15 +818,11 @@ void __fastcall TMenusGen::RadioMenu( TMenuItem *Root, AnsiString ItemName,
// if( ( i_nb > 20 ) && ( i_item % 10 ) ) ? // if( ( i_nb > 20 ) && ( i_item % 10 ) ) ?
if( i_nb > 20 ) if( i_nb > 20 )
{
Root->Add( ItemGroup ); Root->Add( ItemGroup );
}
/* be sure that menu is enabled, if there are several items */ /* be sure that menu is enabled, if there are several items */
if( i_nb > 1 ) if( i_nb > 1 )
{
Root->Enabled = true; Root->Enabled = true;
}
} }
/***************************************************************************** /*****************************************************************************
...@@ -806,9 +877,7 @@ void __fastcall TMenusGen::LanguageMenu( TMenuItem *Root, es_descriptor_t *p_es, ...@@ -806,9 +877,7 @@ void __fastcall TMenusGen::LanguageMenu( TMenuItem *Root, es_descriptor_t *p_es,
i_item++; i_item++;
Name = p_intf->p_sys->p_input->stream.pp_es[i]->psz_desc; Name = p_intf->p_sys->p_input->stream.pp_es[i]->psz_desc;
if( Name.IsEmpty() ) if( Name.IsEmpty() )
{
Name.sprintf( "Language %d", i_item ); Name.sprintf( "Language %d", i_item );
}
Item = new TMenuItem( Root ); Item = new TMenuItem( Root );
Item->RadioItem = true; Item->RadioItem = true;
...@@ -818,9 +887,7 @@ void __fastcall TMenusGen::LanguageMenu( TMenuItem *Root, es_descriptor_t *p_es, ...@@ -818,9 +887,7 @@ void __fastcall TMenusGen::LanguageMenu( TMenuItem *Root, es_descriptor_t *p_es,
/* check the currently selected item */ /* check the currently selected item */
if( p_es == p_intf->p_sys->p_input->stream.pp_es[i] ) if( p_es == p_intf->p_sys->p_input->stream.pp_es[i] )
{
Item->Checked = true; Item->Checked = true;
}
/* setup signal hanling */ /* setup signal hanling */
Item->OnClick = MenuItemClick; Item->OnClick = MenuItemClick;
...@@ -833,9 +900,7 @@ void __fastcall TMenusGen::LanguageMenu( TMenuItem *Root, es_descriptor_t *p_es, ...@@ -833,9 +900,7 @@ void __fastcall TMenusGen::LanguageMenu( TMenuItem *Root, es_descriptor_t *p_es,
/* be sure that menu is enabled if non empty */ /* be sure that menu is enabled if non empty */
if( i_item > 0 ) if( i_item > 0 )
{
Root->Enabled = true; Root->Enabled = true;
}
} }
/***************************************************************************** /*****************************************************************************
...@@ -870,9 +935,7 @@ void __fastcall TMenusGen::NavigationMenu( TMenuItem *Root, ...@@ -870,9 +935,7 @@ void __fastcall TMenusGen::NavigationMenu( TMenuItem *Root,
if( ( i_title % 10 == 1 ) && ( i_title_nb > 20 ) ) if( ( i_title % 10 == 1 ) && ( i_title_nb > 20 ) )
{ {
if( i_title != 1 ) if( i_title != 1 )
{
Root->Add( TitleGroup ); Root->Add( TitleGroup );
}
Name.sprintf( "%d - %d", i_title, i_title + 9 ); Name.sprintf( "%d - %d", i_title, i_title + 9 );
TitleGroup = new TMenuItem( Root ); TitleGroup = new TMenuItem( Root );
...@@ -900,9 +963,7 @@ void __fastcall TMenusGen::NavigationMenu( TMenuItem *Root, ...@@ -900,9 +963,7 @@ void __fastcall TMenusGen::NavigationMenu( TMenuItem *Root,
if( ( i_chapter % 10 == 1 ) && ( i_chapter_nb > 20 ) ) if( ( i_chapter % 10 == 1 ) && ( i_chapter_nb > 20 ) )
{ {
if( i_chapter != 1 ) if( i_chapter != 1 )
{
TitleItem->Add( ChapterGroup ); TitleItem->Add( ChapterGroup );
}
Name.sprintf( "%d - %d", i_chapter, i_chapter + 9 ); Name.sprintf( "%d - %d", i_chapter, i_chapter + 9 );
ChapterGroup = new TMenuItem( TitleItem ); ChapterGroup = new TMenuItem( TitleItem );
...@@ -961,12 +1022,9 @@ void __fastcall TMenusGen::NavigationMenu( TMenuItem *Root, ...@@ -961,12 +1022,9 @@ void __fastcall TMenusGen::NavigationMenu( TMenuItem *Root,
} }
if( i_title_nb > 20 ) if( i_title_nb > 20 )
{
Root->Add( TitleGroup ); Root->Add( TitleGroup );
}
/* be sure that menu is sensitive */ /* be sure that menu is sensitive */
Root->Enabled = true; Root->Enabled = true;
} }
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* menu.h: prototypes for menu functions * menu.h: prototypes for menu functions
***************************************************************************** *****************************************************************************
* Copyright (C) 2002 VideoLAN * Copyright (C) 2002 VideoLAN
* $Id: menu.h,v 1.3 2003/01/08 02:16:09 ipkiss Exp $ * $Id: menu.h,v 1.4 2003/01/23 03:33:34 ipkiss Exp $
* *
* Authors: Olivier Teuliere <ipkiss@via.ecp.fr> * Authors: Olivier Teuliere <ipkiss@via.ecp.fr>
* *
...@@ -45,6 +45,7 @@ private: ...@@ -45,6 +45,7 @@ private:
TMenuItem *MenuTitle; TMenuItem *MenuTitle;
TMenuItem *MenuChapter; TMenuItem *MenuChapter;
TMenuItem *PopupNavigation; TMenuItem *PopupNavigation;
TMenuItem *MenuAddInterface;
/* Language information */ /* Language information */
es_descriptor_t * p_audio_es_old; es_descriptor_t * p_audio_es_old;
...@@ -56,6 +57,7 @@ private: ...@@ -56,6 +57,7 @@ private:
int __fastcall Data2Title( int data ); int __fastcall Data2Title( int data );
int __fastcall Data2Chapter( int data ); int __fastcall Data2Chapter( int data );
int __fastcall Pos2Data( int title, int chapter ); int __fastcall Pos2Data( int title, int chapter );
AnsiString __fastcall TMenusGen::CleanCaption( AnsiString Caption );
void __fastcall VarChange( vlc_object_t *, const char *, TMenuItem *, void __fastcall VarChange( vlc_object_t *, const char *, TMenuItem *,
TMenuItem *, TMenuItem * ); TMenuItem *, TMenuItem * );
...@@ -64,6 +66,7 @@ private: ...@@ -64,6 +66,7 @@ private:
void __fastcall SetupVarMenu( vlc_object_t *, const char *, TMenuItem *, void __fastcall SetupVarMenu( vlc_object_t *, const char *, TMenuItem *,
TNotifyEvent ); TNotifyEvent );
void __fastcall SetupModuleMenu( const char *, TMenuItem *, TNotifyEvent );
void __fastcall ProgramMenu( TMenuItem *, pgrm_descriptor_t *, void __fastcall ProgramMenu( TMenuItem *, pgrm_descriptor_t *,
TNotifyEvent ); TNotifyEvent );
void __fastcall RadioMenu( TMenuItem *, AnsiString, int, int, void __fastcall RadioMenu( TMenuItem *, AnsiString, int, int,
...@@ -80,6 +83,7 @@ public: ...@@ -80,6 +83,7 @@ public:
/* callbacks for menuitems */ /* callbacks for menuitems */
void __fastcall AoutVarClick( TObject *Sender ); void __fastcall AoutVarClick( TObject *Sender );
void __fastcall VoutVarClick( TObject *Sender ); void __fastcall VoutVarClick( TObject *Sender );
void __fastcall InterfaceModuleClick( TObject *Sender );
void __fastcall MenuLanguageClick( TObject *Sender ); void __fastcall MenuLanguageClick( TObject *Sender );
void __fastcall PopupLanguageClick( TObject *Sender ); void __fastcall PopupLanguageClick( TObject *Sender );
void __fastcall MenuSubtitleClick( TObject *Sender ); void __fastcall MenuSubtitleClick( TObject *Sender );
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* sout.cpp: the stream ouput dialog box * sout.cpp: the stream ouput dialog box
***************************************************************************** *****************************************************************************
* Copyright (C) 2002-2003 VideoLAN * Copyright (C) 2002-2003 VideoLAN
* $Id: sout.cpp,v 1.2 2003/01/22 21:42:51 ipkiss Exp $ * $Id: sout.cpp,v 1.3 2003/01/23 03:33:34 ipkiss Exp $
* *
* Authors: Olivier Teuliere <ipkiss@via.ecp.fr> * Authors: Olivier Teuliere <ipkiss@via.ecp.fr>
* *
...@@ -79,7 +79,7 @@ void __fastcall TSoutDlg::RadioButtonAccessClick( TObject *Sender ) ...@@ -79,7 +79,7 @@ void __fastcall TSoutDlg::RadioButtonAccessClick( TObject *Sender )
SpinEditPort->Enabled = b_udp | b_rtp; SpinEditPort->Enabled = b_udp | b_rtp;
RadioButtonPS->Enabled = !b_rtp; RadioButtonPS->Enabled = !b_rtp;
if( b_rtp ) if( b_udp || b_rtp )
RadioButtonTS->Checked = true; RadioButtonTS->Checked = true;
RebuildMrl(); RebuildMrl();
......
...@@ -42,6 +42,8 @@ object SubtitlesDlg: TSubtitlesDlg ...@@ -42,6 +42,8 @@ object SubtitlesDlg: TSubtitlesDlg
Width = 57 Width = 57
Height = 21 Height = 21
Hint = 'Set the delay (in seconds)' Hint = 'Set the delay (in seconds)'
ParentShowHint = False
ShowHint = True
TabOrder = 0 TabOrder = 0
Text = '0.0' Text = '0.0'
end end
...@@ -52,6 +54,8 @@ object SubtitlesDlg: TSubtitlesDlg ...@@ -52,6 +54,8 @@ object SubtitlesDlg: TSubtitlesDlg
Height = 21 Height = 21
Hint = 'Set the number of Frames Per Second' Hint = 'Set the number of Frames Per Second'
Anchors = [akTop, akRight] Anchors = [akTop, akRight]
ParentShowHint = False
ShowHint = True
TabOrder = 1 TabOrder = 1
Text = '0.0' Text = '0.0'
end end
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* win32.cpp : Win32 interface plugin for vlc * win32.cpp : Win32 interface plugin for vlc
***************************************************************************** *****************************************************************************
* Copyright (C) 2002-2003 VideoLAN * Copyright (C) 2002-2003 VideoLAN
* $Id: win32.cpp,v 1.10 2003/01/22 21:42:51 ipkiss Exp $ * $Id: win32.cpp,v 1.11 2003/01/23 03:33:34 ipkiss Exp $
* *
* Authors: Olivier Teulire <ipkiss@via.ecp.fr> * Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* *
...@@ -128,6 +128,7 @@ static void Run( intf_thread_t *p_intf ) ...@@ -128,6 +128,7 @@ static void Run( intf_thread_t *p_intf )
delete p_intf->p_sys->p_menus; delete p_intf->p_sys->p_menus;
delete p_intf->p_sys->p_messages; delete p_intf->p_sys->p_messages;
delete p_intf->p_sys->p_playwin; delete p_intf->p_sys->p_playwin;
delete p_intf->p_sys->p_window;
} }
/***************************************************************************** /*****************************************************************************
...@@ -242,7 +243,7 @@ int Win32Manage( intf_thread_t *p_intf ) ...@@ -242,7 +243,7 @@ int Win32Manage( intf_thread_t *p_intf )
vlc_object_release( (vlc_object_t *)p_aout ); vlc_object_release( (vlc_object_t *)p_aout );
} }
/* Does the video output require to update the menus ? */ /* Does the video output require to update the menus ? */
p_vout = (vout_thread_t *)vlc_object_find( p_intf, VLC_OBJECT_VOUT, p_vout = (vout_thread_t *)vlc_object_find( p_intf, VLC_OBJECT_VOUT,
FIND_ANYWHERE ); FIND_ANYWHERE );
...@@ -259,8 +260,8 @@ int Win32Manage( intf_thread_t *p_intf ) ...@@ -259,8 +260,8 @@ int Win32Manage( intf_thread_t *p_intf )
vlc_object_release( (vlc_object_t *)p_vout ); vlc_object_release( (vlc_object_t *)p_vout );
} }
if( b_need_menus ) // if( b_need_menus )
p_intf->p_sys->p_menus->SetupMenus(); // p_intf->p_sys->p_menus->SetupMenus();
vlc_mutex_unlock( &p_input->stream.stream_lock ); vlc_mutex_unlock( &p_input->stream.stream_lock );
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment