[vlc] Re: Sharing information between http interface instances.
Michel Van den Bergh
michel.vandenbergh at uhasselt.be
Tue Aug 15 11:51:57 CEST 2006
Sorry, forgot patch.
--- vlc-0.8.5/src/playlist/playlist.c 2006-05-06 17:52:13.000000000 +0200
+++ SRC/VLC-0.8.5/vlc-0.8.5testbuild/src/playlist/playlist.c
2006-08-14 15:21:44.000000000 +0200
@@ -24,6 +24,7 @@
#include <stdlib.h> /* free(),
strtol() */
#include <stdio.h> /*
sprintf() */
#include <string.h> /*
strerror() */
+#include <sys/time.h>
#include <vlc/vlc.h>
#include <vlc/vout.h>
@@ -129,6 +130,10 @@
val.b_bool = VLC_TRUE;
var_Set( p_playlist, "intf-show", val );
+ /* Data storage */
+ var_Create(p_playlist, "timestamp",VLC_VAR_INTEGER);
+ val.i_int= (uint) time(NULL);
+ var_Set(p_playlist,"timestamp", val);
/* Variables to control playback */
var_CreateGetBool( p_playlist, "play-and-stop" );
@@ -258,6 +263,7 @@
var_Destroy( p_playlist, "random" );
var_Destroy( p_playlist, "repeat" );
var_Destroy( p_playlist, "loop" );
+ var_Destroy( p_playlist, "timestamp" );
playlist_Clear( p_playlist );
--
This is the vlc mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://www.videolan.org/support/lists.html
More information about the vlc
mailing list