mirror of
https://github.com/mpv-player/mpv
synced 2025-01-01 12:22:22 +00:00
c1f9fe7d67
Pass it in function calls instead. There's no reasonable way to pass it to exit_player() when used outside mplayer.c. However most of those uses seem to be wrong (the code should not make the program exit) and should be removed. For now just make exit_player() uses outside mplayer.c simply call exit() without any shutdown code.
64 lines
1.2 KiB
C
64 lines
1.2 KiB
C
|
|
#ifndef MPLAYER_MPLAYER_H
|
|
#define MPLAYER_MPLAYER_H
|
|
|
|
#include "mp_msg.h"
|
|
|
|
extern char* current_module;
|
|
|
|
extern char * dvd_device;
|
|
extern char * cdrom_device;
|
|
|
|
extern char ** audio_fm_list;
|
|
extern char ** video_fm_list;
|
|
extern char ** video_driver_list;
|
|
extern char ** audio_driver_list;
|
|
extern char * video_driver;
|
|
extern char * audio_driver;
|
|
extern float audio_delay;
|
|
|
|
extern int osd_level;
|
|
extern unsigned int osd_visible;
|
|
|
|
extern char * font_name;
|
|
extern char * sub_font_name;
|
|
extern float font_factor;
|
|
extern float movie_aspect;
|
|
extern double force_fps;
|
|
|
|
//extern char **sub_name;
|
|
extern float sub_delay;
|
|
extern float sub_fps;
|
|
extern int sub_auto;
|
|
|
|
extern char * filename;
|
|
|
|
extern int stream_cache_size;
|
|
extern int autosync;
|
|
|
|
// libmpcodecs:
|
|
extern int fullscreen;
|
|
extern int flip;
|
|
|
|
extern int frame_dropping;
|
|
|
|
extern int auto_quality;
|
|
|
|
extern int audio_id;
|
|
extern int video_id;
|
|
extern int dvdsub_id;
|
|
extern int vobsub_id;
|
|
|
|
static inline void exit_player(const char *how)
|
|
{
|
|
if (how)
|
|
mp_msg(MSGT_CPLAYER, MSGL_INFO, "Deprecated exit call: %s", how);
|
|
exit(1);
|
|
}
|
|
|
|
struct MPContext;
|
|
|
|
extern void update_set_of_subtitles(struct MPContext *mpctx);
|
|
|
|
#endif /* MPLAYER_MPLAYER_H */
|