diff options
author | phintuka <phintuka> | 2006-10-18 21:20:41 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2006-10-18 21:20:41 +0000 |
commit | e01e44a1d5eb5f7f5c837398b750400d3abccba8 (patch) | |
tree | dd5ded3f715ee6db14619e5b894ce8315f44ad39 | |
parent | 94a0837ce27505bf1b1bfe6890e3555c4c7356dd (diff) | |
download | xineliboutput-e01e44a1d5eb5f7f5c837398b750400d3abccba8.tar.gz xineliboutput-e01e44a1d5eb5f7f5c837398b750400d3abccba8.tar.bz2 |
Use hotkey feature for SPU track selection
-rw-r--r-- | media_player.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/media_player.c b/media_player.c index 68cc1e00..1836a9b4 100644 --- a/media_player.c +++ b/media_player.c @@ -4,7 +4,7 @@ * See the main source file '.c' for copyright information and * how to reach the author. * - * $Id: media_player.c,v 1.12 2006-10-18 20:17:46 phintuka Exp $ + * $Id: media_player.c,v 1.13 2006-10-18 21:20:41 phintuka Exp $ * */ @@ -212,7 +212,7 @@ class cXinelibPlayer : public cPlayer { virtual void SetAudioTrack(eTrackType Type, const tTrackId *TrackId) { - LOGMSG("cXinelibPlayer::SetAudioTrack(%d)",(int)Type); + /*LOGMSG("cXinelibPlayer::SetAudioTrack(%d)",(int)Type);*/ char tmp[64]; if(IS_DOLBY_TRACK(Type)) sprintf(tmp, "AUDIOSTREAM AC3 %d", (int)(Type - ttDolbyFirst)); @@ -704,8 +704,18 @@ eOSState cXinelibDvdPlayerControl::ProcessKey(eKeys Key) Menu = new cDvdMenu(); break; // SPU channel +#if 0 case k2: r = cXinelibDevice::Instance().PlayFileCtrl("SPUSTREAM NEXT"); break; case k5: r = cXinelibDevice::Instance().PlayFileCtrl("SPUSTREAM PREV"); break; +#else + case k5: cXinelibDevice::Instance().SetCurrentDvdSpuTrack( + cXinelibDevice::Instance().GetCurrentDvdSpuTrack() - 2); + case k2: cRemote::CallPlugin("xineliboutput"); + cRemote::Put(kRed); + cRemote::Put(k2); + break; +#endif + // Playback control case kGreen: r = cXinelibDevice::Instance().PlayFileCtrl("SEEK -60"); break; case kYellow: r = cXinelibDevice::Instance().PlayFileCtrl("SEEK +60"); break; |