1.1 --- a/player-mplayer.c Sun Dec 12 11:31:54 2010 +0100
1.2 +++ b/player-mplayer.c Sun Dec 12 11:53:00 2010 +0100
1.3 @@ -1,7 +1,7 @@
1.4 /*
1.5 * MP3/MPlayer plugin to VDR (C++)
1.6 *
1.7 - * (C) 2001-2009 Stefan Huelswitt <s.huelswitt@gmx.de>
1.8 + * (C) 2001-2010 Stefan Huelswitt <s.huelswitt@gmx.de>
1.9 *
1.10 * This code is free software; you can redistribute it and/or
1.11 * modify it under the terms of the GNU General Public License
1.12 @@ -665,6 +665,17 @@
1.13 }
1.14 }
1.15
1.16 +void cMPlayerPlayer::SkipTrack(int dir, bool chapter)
1.17 +{
1.18 + if(slave) {
1.19 + bool p=false;
1.20 + if(playMode==pmPaused) { Play(); p=true; }
1.21 + MPlayerControl("%s %d",chapter ? "seek_chapter":"pt_step",dir);
1.22 + if(p) Pause();
1.23 + saveIndex=-1;
1.24 + }
1.25 +}
1.26 +
1.27 void cMPlayerPlayer::KeyCmd(const char *cmd)
1.28 {
1.29 if(slave) MPlayerControl(cmd);