summaryrefslogtreecommitdiffstats
path: root/Gui/mplayer
diff options
context:
space:
mode:
authorpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-08-14 12:17:04 +0000
committerpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-08-14 12:17:04 +0000
commitb5bb6e8f73013279d8f6fb78b658258848a760cd (patch)
treeb6fb0b7c9ea115d19a5f362e61404cc32701d712 /Gui/mplayer
parent2d55a9e67cba1c79ce79341d7aa93c387fee3763 (diff)
downloadmpv-b5bb6e8f73013279d8f6fb78b658258848a760cd.tar.bz2
mpv-b5bb6e8f73013279d8f6fb78b658258848a760cd.tar.xz
add uri2filename converter
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6997 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Gui/mplayer')
-rw-r--r--Gui/mplayer/mw.h15
-rw-r--r--Gui/mplayer/play.c2
-rw-r--r--Gui/mplayer/widgets.c1
3 files changed, 7 insertions, 11 deletions
diff --git a/Gui/mplayer/mw.h b/Gui/mplayer/mw.h
index 8cc410403e..15983e218c 100644
--- a/Gui/mplayer/mw.h
+++ b/Gui/mplayer/mw.h
@@ -668,20 +668,13 @@ void mplDandDHandler(int num,const char** files)
char* str = strdup( files[f] );
plItem* item;
+#ifdef USE_ICONV
if ( strchr( str,'%' ) )
{
- char * t = calloc( 1,strlen( str ) );
- int i,c = 0;
- for ( i=0;i < strlen( str );i++ )
- if ( str[i] != '%' ) t[c++]=str[i];
- else
- {
- char tmp[4] = "0xXX";
-// if ( str[++i] == '%' ) { t[c++]='%'; continue; };
- tmp[2]=str[++i]; tmp[3]=str[++i]; t[c++]=(char)strtol( tmp,(char **)NULL,16 );
- }
- free( str ); str=t;
+ char * tmp=gconvert_uri_to_filename( str );
+ free( str ); str=tmp;
}
+#endif
if(stat(str,&buf) == 0 && S_ISDIR(buf.st_mode) == 0) {
/* this is not a directory so try to play it */
diff --git a/Gui/mplayer/play.c b/Gui/mplayer/play.c
index 1f5d71495e..58946f7e49 100644
--- a/Gui/mplayer/play.c
+++ b/Gui/mplayer/play.c
@@ -107,9 +107,11 @@ void mplEnd( void )
guiIntfStruct.TimeSec=0;
guiIntfStruct.Position=0;
guiIntfStruct.AudioType=0;
+#ifdef USE_DVDREAD
guiIntfStruct.DVD.current_title=1;
guiIntfStruct.DVD.current_chapter=1;
guiIntfStruct.DVD.current_angle=1;
+#endif
if ( !appMPlayer.subWindow.isFullScreen )
{
diff --git a/Gui/mplayer/widgets.c b/Gui/mplayer/widgets.c
index aea04e6481..96b4dff59a 100644
--- a/Gui/mplayer/widgets.c
+++ b/Gui/mplayer/widgets.c
@@ -29,6 +29,7 @@
#include "../../config.h"
#include "../../help_mp.h"
+#include "../../mp_msg.h"
GtkWidget * PopUpMenu = NULL;