[xiph-cvs] cvs commit: ices/src playlist_basic.c playlist_basic.h
Michael Smith
msmith at xiph.org
Fri Sep 28 03:16:54 PDT 2001
msmith 01/09/28 03:16:54
Modified: src playlist_basic.c playlist_basic.h
Log:
Allow specifying restart-after-reread to restart a playlist if it gets
reread, as an option on the playlist_basic module.
Revision Changes Path
1.3 +5 -1 ices/src/playlist_basic.c
Index: playlist_basic.c
===================================================================
RCS file: /usr/local/cvsroot/ices/src/playlist_basic.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- playlist_basic.c 2001/09/25 12:04:22 1.2
+++ playlist_basic.c 2001/09/28 10:16:54 1.3
@@ -1,7 +1,7 @@
/* playlist_basic.c
* - Simple built-in unscripted playlist
*
- * $Id: playlist_basic.c,v 1.2 2001/09/25 12:04:22 msmith Exp $
+ * $Id: playlist_basic.c,v 1.3 2001/09/28 10:16:54 msmith Exp $
*
* Copyright (c) 2001 Michael Smith <msmith at labyrinth.net.au>
*
@@ -130,6 +130,8 @@
{
LOG_INFO1("Reloading playlist after file \"%s\" changed", pl->file);
load_playlist(pl);
+ if(pl->restartafterreread)
+ pl->pos = 0;
}
if (pl->pos < pl->len)
@@ -167,6 +169,8 @@
data->random = atoi(params->value);
else if(!strcmp(params->name, "once"))
data->once = atoi(params->value);
+ else if(!strcmp(params->name, "restart-after-reread"))
+ data->restartafterreread = atoi(params->value);
else if(!strcmp(params->name, "type"))
; /* We recognise this, but don't want to do anything with it */
else
1.3 +2 -1 ices/src/playlist_basic.h
Index: playlist_basic.h
===================================================================
RCS file: /usr/local/cvsroot/ices/src/playlist_basic.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- playlist_basic.h 2001/09/25 12:04:22 1.2
+++ playlist_basic.h 2001/09/28 10:16:54 1.3
@@ -1,7 +1,7 @@
/* playlist_basic.h
* - Simple unscripted playlist
*
- * $Id: playlist_basic.h,v 1.2 2001/09/25 12:04:22 msmith Exp $
+ * $Id: playlist_basic.h,v 1.3 2001/09/28 10:16:54 msmith Exp $
*
* Copyright (c) 2001 Michael Smith <msmith at labyrinth.net.au>
*
@@ -23,6 +23,7 @@
time_t mtime;
int random;
int once;
+ int restartafterreread;
} basic_playlist;
--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the commits
mailing list