diff options
| author | lvw <lvw@e10066b5-e1e2-0310-b819-94efdf66514b> | 2004-10-25 00:43:35 +0000 |
|---|---|---|
| committer | lvw <lvw@e10066b5-e1e2-0310-b819-94efdf66514b> | 2004-10-25 00:43:35 +0000 |
| commit | fb1b8ac353ae078ec1bf11e10fc1e78a74859b1d (patch) | |
| tree | d62ef8f1a0312245f929e2bc482f0afe15b1dad3 | |
| parent | ebd30417fad4c884fd169efa89cb87abf1437c5c (diff) | |
| download | vdr-plugin-muggle-fb1b8ac353ae078ec1bf11e10fc1e78a74859b1d.tar.gz vdr-plugin-muggle-fb1b8ac353ae078ec1bf11e10fc1e78a74859b1d.tar.bz2 | |
Result of skipping back/forth incorrect when not in a loop mode
git-svn-id: https://vdr-muggle.svn.sourceforge.net/svnroot/vdr-muggle/trunk@237 e10066b5-e1e2-0310-b819-94efdf66514b
| -rw-r--r-- | muggle-plugin/mg_playlist.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/muggle-plugin/mg_playlist.c b/muggle-plugin/mg_playlist.c index 0b38925..b4bc487 100644 --- a/muggle-plugin/mg_playlist.c +++ b/muggle-plugin/mg_playlist.c @@ -263,15 +263,20 @@ bool mgPlaylist::skipFwd() if( m_current_idx + 1 < m_list.size() ) // unless loop mode { m_current_idx ++; + result = true; } else { if( m_loop_mode == mgPlaylist::LM_FULL ) { m_current_idx = 0; + result = true; + } + else + { + result = false; } } - result = true; } // if we are already at the end -- just do nothing unless in loop mode @@ -292,15 +297,20 @@ bool mgPlaylist::skipBack() if( m_current_idx > 0 ) { m_current_idx --; + result = true; } else { if( m_loop_mode == mgPlaylist::LM_FULL ) { m_current_idx = m_list.size() -1; + result = true; + } + else + { + result = false; } } - result = true; } // if we are at the beginning -- just do nothing unless in loop mode return result; |
