summaryrefslogtreecommitdiff
path: root/muggle-plugin/vdr_menu.c
diff options
context:
space:
mode:
authorlvw <lvw@e10066b5-e1e2-0310-b819-94efdf66514b>2004-10-08 06:41:32 +0000
committerlvw <lvw@e10066b5-e1e2-0310-b819-94efdf66514b>2004-10-08 06:41:32 +0000
commit1c42cee4af45eb143db9f8b1caa9d45f16ea13fc (patch)
treeaaca1e0ebd94c2a68a28ab86c4e938d83a906fd0 /muggle-plugin/vdr_menu.c
parentb504cd03caf1e82ea6c1a4795f5ee300c537928f (diff)
downloadvdr-plugin-muggle-1c42cee4af45eb143db9f8b1caa9d45f16ea13fc.tar.gz
vdr-plugin-muggle-1c42cee4af45eb143db9f8b1caa9d45f16ea13fc.tar.bz2
Added starting playlist at a certain index
git-svn-id: https://vdr-muggle.svn.sourceforge.net/svnroot/vdr-muggle/trunk@209 e10066b5-e1e2-0310-b819-94efdf66514b
Diffstat (limited to 'muggle-plugin/vdr_menu.c')
-rw-r--r--muggle-plugin/vdr_menu.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/muggle-plugin/vdr_menu.c b/muggle-plugin/vdr_menu.c
index 1b5c9f1..519c809 100644
--- a/muggle-plugin/vdr_menu.c
+++ b/muggle-plugin/vdr_menu.c
@@ -287,7 +287,9 @@ eOSState mgMainMenu::ProcessKey(eKeys key)
{
case kOk:
{
- // show some more information?
+ // start replay at selected index
+ int idx = Current();
+ Play( m_current_playlist, idx );
state = osContinue;
} break;
case kRed:
@@ -948,17 +950,17 @@ void mgMainMenu::DisplayFilterSelector()
// show available filters, load on OK?
}
-void mgMainMenu::Play(mgPlaylist *plist)
+void mgMainMenu::Play( mgPlaylist *plist, int first )
{
MGLOG( "mgMainMenu::Play" );
cControl *control = cControl::Control();
if( control && typeid(*control) == typeid(mgPlayerControl) )
{ // is there a running MP3 player?
- static_cast<mgPlayerControl*>(control)->NewPlaylist(plist); // signal the running player to load the new playlist
+ static_cast<mgPlayerControl*>(control)->NewPlaylist(plist, first); // signal the running player to load the new playlist
}
else
{
- cControl::Launch( new mgPlayerControl(plist) );
+ cControl::Launch( new mgPlayerControl(plist, first) );
}
}