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 | ebc27e732db857a58aaf8c1ba1e9dc2a7a08ac54 (patch) | |
| tree | e027561a47f5767f72b59f02da422dc4f7fc245a | |
| parent | d1f40a700e44fc856bbb83f533bc225b642b26cd (diff) | |
| download | vdr-plugin-muggle-ebc27e732db857a58aaf8c1ba1e9dc2a7a08ac54.tar.gz vdr-plugin-muggle-ebc27e732db857a58aaf8c1ba1e9dc2a7a08ac54.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/muggle-plugin@237 e10066b5-e1e2-0310-b819-94efdf66514b
| -rw-r--r-- | mg_playlist.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/mg_playlist.c b/mg_playlist.c index 0b38925..b4bc487 100644 --- a/mg_playlist.c +++ b/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; |
