Commit 8e67d37a authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* Fix id3tag new meta

parent 38f9675c
......@@ -41,6 +41,7 @@
#define VLC_META_LANGUAGE N_("Language")
#define VLC_META_NOW_PLAYING N_("Now Playing")
#define VLC_META_PUBLISHER N_("Publisher")
#define VLC_META_ENCODED_BY N_("Encoded by")
#define VLC_META_CODEC_NAME N_("Codec Name")
#define VLC_META_CODEC_DESCRIPTION N_("Codec Description")
......@@ -62,6 +63,7 @@ struct vlc_meta_t
char *psz_language;
char *psz_nowplaying;
char *psz_publisher;
char *psz_encodedby;
#if 0
/* track meta information */
int i_track;
......@@ -88,6 +90,7 @@ struct vlc_meta_t
#define vlc_meta_SetLanguage( meta, b ) vlc_meta_Set( meta, language, b );
#define vlc_meta_SetNowPlaying( meta, b ) vlc_meta_Set( meta, nowplaying, b );
#define vlc_meta_SetPublisher( meta, b ) vlc_meta_Set( meta, publisher, b );
#define vlc_meta_SetEncodedBy( meta, b ) vlc_meta_Set( meta, encodedby, b );
static inline vlc_meta_t *vlc_meta_New( void )
{
......@@ -108,6 +111,7 @@ static inline vlc_meta_t *vlc_meta_New( void )
m->psz_language = NULL;
m->psz_nowplaying = NULL;
m->psz_publisher = NULL;
m->psz_encodedby = NULL;
return m;
}
......@@ -128,6 +132,7 @@ static inline void vlc_meta_Delete( vlc_meta_t *m )
free( m->psz_language );
free( m->psz_nowplaying );
free( m->psz_publisher );
free( m->psz_encodedby );
free( m );
}
......@@ -155,6 +160,7 @@ static inline void vlc_meta_Merge( vlc_meta_t *dst, vlc_meta_t *src )
COPY_FIELD( language );
COPY_FIELD( nowplaying );
COPY_FIELD( publisher );
COPY_FIELD( encodedby );
}
/** \todo Track meta */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment