summaryrefslogtreecommitdiff
path: root/tools/playlist.c
diff options
context:
space:
mode:
authorphintuka <phintuka>2010-09-13 11:39:34 +0000
committerphintuka <phintuka>2010-09-13 11:39:34 +0000
commit8312d07034c25b3aa0a8c9f8be358b4c9cc9f18f (patch)
tree89ae5c31b05de53481c9b602bec2f42c1b2a8452 /tools/playlist.c
parent74504030edb3f2cc813969beaebafa812bb243c2 (diff)
downloadxineliboutput-8312d07034c25b3aa0a8c9f8be358b4c9cc9f18f.tar.gz
xineliboutput-8312d07034c25b3aa0a8c9f8be358b4c9cc9f18f.tar.bz2
Added cPlaylist::Move()
(Thanks to Marco Skambraks)
Diffstat (limited to 'tools/playlist.c')
-rw-r--r--tools/playlist.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/tools/playlist.c b/tools/playlist.c
index 65fe4057..8ced772a 100644
--- a/tools/playlist.c
+++ b/tools/playlist.c
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: playlist.c,v 1.29 2010-03-12 22:47:28 phintuka Exp $
+ * $Id: playlist.c,v 1.30 2010-09-13 11:39:34 phintuka Exp $
*
*/
@@ -491,6 +491,17 @@ void cPlaylist::Del(cPlaylistItem *it)
m_Version++;
}
+void cPlaylist::Move(int From, int To)
+{
+ cMutexLock ml(&m_Lock);
+
+ if (Count() < 3)
+ return;
+
+ cListBase::Move(From, To);
+ m_Version++;
+}
+
void cPlaylist::SetCurrent(cPlaylistItem *current)
{
cMutexLock ml(&m_Lock);