VLC_API char * vlc_b64_decode( const char *psz_src );
VLC_API char * str_format_time( const char * );
-VLC_API char * str_format_meta( vlc_object_t *, const char * );
-#define str_format_meta( a, b ) str_format_meta( VLC_OBJECT( a ), b )
-VLC_API char * str_format( vlc_object_t *, const char * );
-#define str_format( a, b ) str_format( VLC_OBJECT( a ), b )
+VLC_API char * str_format_meta( playlist_t *, const char * );
+
+static inline char *str_format( playlist_t *pl, const char *fmt )
+{
+ char *s1 = str_format_time( fmt );
+ char *s2 = str_format_meta( pl, s1 );
+ free( s1 );
+ return s2;
+}
VLC_API void filename_sanitize( char * );
VLC_API void path_sanitize( char * );