summaryrefslogtreecommitdiffstats
path: root/Gui/mplayer/mw.h
diff options
context:
space:
mode:
Diffstat (limited to 'Gui/mplayer/mw.h')
-rw-r--r--Gui/mplayer/mw.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/Gui/mplayer/mw.h b/Gui/mplayer/mw.h
index 9d5da0a09a..dfc094f1c9 100644
--- a/Gui/mplayer/mw.h
+++ b/Gui/mplayer/mw.h
@@ -20,6 +20,9 @@ inline void TranslateFilename( int c,char * tmp )
int i;
switch ( guiIntfStruct.StreamType )
{
+ case STREAMTYPE_STREAM:
+ strcpy( tmp,guiIntfStruct.Filename );
+ break;
case STREAMTYPE_FILE:
if ( ( guiIntfStruct.Filename )&&( guiIntfStruct.Filename[0] ) )
{
@@ -221,6 +224,13 @@ void mplEventHandling( int msg,float param )
exit_player( "Exit" );
break;
+ case evPlayNetwork:
+ guiIntfStruct.StreamType=STREAMTYPE_STREAM;
+ goto play;
+ case evSetURL:
+ gtkShow( evPlayNetwork,NULL );
+ break;
+
#ifdef HAVE_VCD
case evSetVCDTrack:
guiIntfStruct.Track=(int)param;
@@ -247,6 +257,7 @@ play:
switch ( guiIntfStruct.StreamType )
{
+ case STREAMTYPE_STREAM:
case STREAMTYPE_FILE:
guiGetEvent( guiClearStruct,guiALL );
break;