[vlc] Re: Sharing information between http interface instances.

Jean-Paul Saman jean-paul.saman at planet.nl
Tue Aug 15 13:27:54 CEST 2006


Michel Van den Bergh wrote:
> 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 );
> 
> 
It looks like your forgot to send a few other files. Who uses the new 
variable "timestamp" and for what purpose exactly??

Gtz,
jean-paul Saman.

-- 
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