view gui/mplayer/gmplayer.h @ 24086:f5b32d12b691

remove gconvert_uri_to_filename() and use url_unescape_string() instead. reasons: * gconvert strdup()s the original string, but it may exit without returning or freeing it. * gconvert returns the original pointer when no % escaping is done. It is then free()ed and used in that state. * gconvert doesn't consider that % may be at the end of the string and could continue parsing past the end. * gconvert would try to free() pointer that iconv() have modified. * gconvert would try to convert filenames from utf-8 to iso8859-1. Seems like no other DnD programs convert to utf-8 and/or honors CHARSET. Not converting seems to work best. Fix it if problem arises.
author iive
date Mon, 20 Aug 2007 14:17:43 +0000
parents 1cb14b091f46
children 3baf6a2283da
line wrap: on
line source


#ifndef GUI_GMPLAYER_H
#define GUI_GMPLAYER_H

extern int             mplSubRender;
extern int             mplMainRender;

extern unsigned char * mplDrawBuffer;
extern unsigned char * mplMenuDrawBuffer;
extern int             mainVisible;

extern int             mplMainAutoPlay;
extern int             mplMiddleMenu;

extern void mplInit( void * disp );

extern void mplMainDraw( void );
extern void mplEventHandling( int msg,float param );
extern void mplMainMouseHandle( int Button,int X,int Y,int RX,int RY );
extern void mplMainKeyHandle( int KeyCode,int Type,int Key );
extern void mplDandDHandler(int num,char** files);

extern void mplSubDraw( void );
extern void mplSubMouseHandle( int Button,int X,int Y,int RX,int RY );

extern void mplMenuInit( void );
extern void mplHideMenu( int mx,int my,int w );
extern void mplShowMenu( int mx,int my );
extern void mplMenuMouseHandle( int X,int Y,int RX,int RY );

extern void mplPBInit( void );
extern void mplPBShow( int x, int y );

#endif