[vlc-devel] [PATCH] Improve the playlist experience

Rémi Denis-Courmont remi at remlab.net
Fri Feb 8 11:48:43 CET 2013


On Fri,  8 Feb 2013 11:12:19 +0100, Mario Speiß <1034-135 at online.de>
wrote:
> diff --git a/modules/misc/playlist/xspf.c b/modules/misc/playlist/xspf.c
> index ffc1cee..52532a4 100644
> --- a/modules/misc/playlist/xspf.c
> +++ b/modules/misc/playlist/xspf.c
> @@ -132,6 +132,11 @@ static void xspf_export_item( playlist_item_t
> *p_item, FILE *p_file,
>          fprintf( p_file, "\t\t\t<image>%s</image>\n", psz );
>      free( psz );
>  
> +    psz = input_xml( p_input, input_item_GetURL );
> +    if( psz && *psz )
> +        fprintf( p_file, "\t\t\t<link>%s</link>\n", psz );
> +    free( psz );
> +

As far as I understand the XSPFv1 specification, that's not how the <link>
element is supposed to work.

>  xspfexportitem_end:
>      /* -> the duration */
>      i_duration = input_item_GetDuration( p_item->p_input );
> @@ -262,3 +267,4 @@ int xspf_export_playlist( vlc_object_t *p_this )
>  
>      return VLC_SUCCESS;
>  }
> +

-- 
Rémi Denis-Courmont
Sent from my collocated server



More information about the vlc-devel mailing list