Enlightenment CVS committal
Author : tsauerbeck
Project : misc
Module : eplayer
Dir : misc/eplayer/src
Modified Files:
playlist.c playlist.h
Log Message:
add a total duration property to the PlayList object. this isn't finished yet ;)
===================================================================
RCS file: /cvsroot/enlightenment/misc/eplayer/src/playlist.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -3 -r1.16 -r1.17
--- playlist.c 10 Jan 2004 16:32:35 -0000 1.16
+++ playlist.c 29 Jan 2004 14:28:37 -0000 1.17
@@ -111,6 +111,8 @@
playlist_item_free((PlayListItem *) pl->items->data);
pl->items = evas_list_remove(pl->items, pl->items->data);
}
+
+ pl->num = pl->duration = 0;
}
/**
@@ -123,6 +125,9 @@
if (!pl || !pli)
return;
+ pl->num--;
+ pl->duration -= pli->duration;
+
pl->items = evas_list_remove(pl->items, pli);
playlist_item_free(pli);
}
@@ -234,6 +239,7 @@
pl->cur_item = pl->items;
pl->num++;
+ pl->duration += pli->duration;
return 1;
}
@@ -318,6 +324,7 @@
if ((pli = playlist_item_new(pl->plugins, ptr))) {
tmp = evas_list_prepend(tmp, pli);
pl->num++;
+ pl->duration += pli->duration;
}
}
===================================================================
RCS file: /cvsroot/enlightenment/misc/eplayer/src/playlist.h,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- playlist.h 28 Dec 2003 09:57:14 -0000 1.9
+++ playlist.h 29 Jan 2004 14:28:37 -0000 1.10
@@ -29,6 +29,7 @@
typedef struct {
int num; /* number of entries */
+ int duration;
Evas_List *items;
Evas_List *cur_item;
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs