Mercurial > mplayer.hg
view osdep/keycodes.h @ 37159:d4fbf2eb4a04
Ensure up-to-dateness of global_sub information upon request.
Some demuxers (like mpg) can detect subtitles only while playing,
which is the reason why MPlayer always - indirectly - calls
update_global_sub_size() prior to dealing with subtitles.
Functions mpctx_get_global_sub_size() and mpctx_get_global_sub_pos(),
however, merely return last determined values, thus missing information
that may have been arisen after MPlayer has checked last for subtitles
(when playback started).
Merge the two mpctx_get_global_sub_*() functions into one for easier
handling.
Retrieve global_sub pos by a mp_property_do("sub") command which
performs the necessary update of both global_sub variables, pos and
size.
Reported by Lode Leroy, lode.leroy gmail com.
author | ib |
---|---|
date | Sun, 17 Aug 2014 18:06:56 +0000 |
parents | 7038dec225b1 |
children |
line wrap: on
line source
/* * KEY code definitions for GyS-TermIO v2.0 * * copyright (C) 1999 A'rpi/ESP-team * * This file is part of MPlayer. * * MPlayer is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * MPlayer is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with MPlayer; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #ifndef MPLAYER_KEYCODES_H #define MPLAYER_KEYCODES_H #define KEY_BASE 0x1000000 enum { KEY_BACKSPACE = 8, KEY_TAB = 9, KEY_ENTER = 13, KEY_ESC = 27, KEY_DELETE = 127, /* Control keys */ KEY_INSERT = KEY_BASE, KEY_HOME, KEY_END, KEY_PAGE_UP, KEY_PAGE_DOWN, /* Cursor movement */ KEY_RIGHT = KEY_BASE + 16, KEY_LEFT, KEY_DOWN, KEY_UP, /* Keypad keys */ KEY_KP0 = KEY_BASE + 32, KEY_KP1, KEY_KP2, KEY_KP3, KEY_KP4, KEY_KP5, KEY_KP6, KEY_KP7, KEY_KP8, KEY_KP9, KEY_KPDEC, KEY_KPINS, KEY_KPDEL, KEY_KPENTER, /* Key combination keys */ KEY_CTRL = KEY_BASE + 48, /* Function keys */ KEY_F = KEY_BASE + 64, /* Multimedia keyboard/remote keys */ KEY_POWER = KEY_BASE+384, KEY_MENU, KEY_PLAY, KEY_PAUSE, KEY_PLAYPAUSE, KEY_STOP, KEY_FORWARD, KEY_REWIND, KEY_NEXT, KEY_PREV, KEY_VOLUME_UP, KEY_VOLUME_DOWN, KEY_MUTE, /* Special internal/virtual keys */ KEY_CLOSE_WIN = KEY_BASE + 0x1000, }; /* Control keys short name */ #define KEY_BS KEY_BACKSPACE #define KEY_DEL KEY_DELETE #define KEY_INS KEY_INSERT #define KEY_PGUP KEY_PAGE_UP #define KEY_PGDOWN KEY_PAGE_DOWN #define KEY_PGDWN KEY_PAGE_DOWN #endif /* MPLAYER_KEYCODES_H */