[MPlayer-cvslog] r37974 - trunk/gui/util/list.c

ib subversion at mplayerhq.hu
Fri Oct 6 15:44:18 EEST 2017


Author: ib
Date: Fri Oct  6 15:44:18 2017
New Revision: 37974

Log:
Update listMgr command PLAYLIST_ITEM_FIND.

Structure plItem has been extended in svn r37495.
Compare the members added at that time as well.

Modified:
   trunk/gui/util/list.c

Modified: trunk/gui/util/list.c
==============================================================================
--- trunk/gui/util/list.c	Thu Oct  5 15:25:49 2017	(r37973)
+++ trunk/gui/util/list.c	Fri Oct  6 15:44:18 2017	(r37974)
@@ -106,7 +106,10 @@ void *listMgr(int cmd, void *data)
             plItem *item = plList;
 
             do {
-                if (gstrcmp(item->path, pdat->path) == 0 && gstrcmp(item->name, pdat->name) == 0)
+                if (gstrcmp(item->path, pdat->path) == 0 &&
+                    gstrcmp(item->name, pdat->name) == 0 &&
+                    gstrcmp(item->title, pdat->title) == 0 &&
+                    item->start == pdat->start && item->stop == pdat->stop)
                     return item;
 
                 item = item->next;


More information about the MPlayer-cvslog mailing list