Mercurial > mplayer.hg
view mplayer.h @ 24131:30028bbcb9e8
Use a single select() for both key and slave input
Previous code used two separate select() calls one after another, so
that whenever it was running select() on one set of fds events in the
other set would go unnoticed until later. Now there's a single select()
which allows reacting immediately to any input source.
The behavior of the new code differs somewhat from the old; for example
multiple fds that stay readable are no longer handled in a round-robin
fashion and the total amount the process sleeps can differ. Some tuning
might be required later.
author | uau |
---|---|
date | Sat, 25 Aug 2007 04:28:11 +0000 |
parents | 88bed2131f19 |
children | 35fcce39b121 |
line wrap: on
line source
#ifndef MPLAYER_H #define MPLAYER_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 float force_fps; //extern char **sub_name; extern float sub_delay; extern float sub_fps; extern int sub_auto; extern int sub_pos; extern int sub_unicode; extern char * sub_cp; extern int suboverlap_enabled; extern char * filename; extern int stream_cache_size; extern int force_ni; extern int index_mode; 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; extern void exit_player(const char* how); extern void update_set_of_subtitles(void); #endif /* MPLAYER_H */