map kNext/kPrev to seek_chapter slave cmd trunk
authornathan
Thu, 12 Feb 2009 21:10:10 +0800
branchtrunk
changeset 2712b5ca8deab5
parent 26 b99a156ae98f
child 28 38d35ff3d93f
map kNext/kPrev to seek_chapter slave cmd
HISTORY
mplayer.c
     1.1 --- a/HISTORY	Thu Feb 12 20:50:04 2009 +0800
     1.2 +++ b/HISTORY	Thu Feb 12 21:10:10 2009 +0800
     1.3 @@ -9,8 +9,8 @@
     1.4  - Added commandline option for a user defined default background image.
     1.5  - Made the handling of song information (e.g. ID3) UTF-8 aware. The infocache
     1.6    file is kept in UTF-8 format now.
     1.7 -- Map audio-button to "switch_audio" slave command in MPlayer replay. Suggested
     1.8 -  by Martin Dauskardt.
     1.9 +- Map audio-button to "switch_audio" and next/prev-button to "seek_chapter"
    1.10 +  slave command in MPlayer replay. Suggested by Martin Dauskardt.
    1.11  - Use blocking IO for OSS output for improved compatibility. Suggested by Martin
    1.12    Dauskardt.
    1.13  - Backward compatible on-the-fly creation of the i18n.c file using Udo Richter's
     2.1 --- a/mplayer.c	Thu Feb 12 20:50:04 2009 +0800
     2.2 +++ b/mplayer.c	Thu Feb 12 21:10:10 2009 +0800
     2.3 @@ -393,6 +393,12 @@
     2.4            case kAudio:
     2.5                      player->KeyCmd("switch_audio");
     2.6                      break;
     2.7 +          case kNext:
     2.8 +                    player->KeyCmd("seek_chapter +1");
     2.9 +                    break;
    2.10 +          case kPrev:
    2.11 +                    player->KeyCmd("seek_chapter -1");
    2.12 +                    break;
    2.13            case k0:
    2.14            case k1:
    2.15            case k2: