stream_Read( p_demux->s, psz, i_len );
psz[i_len] = '\0';
- msg_Dbg( p_demux, " - title=`%s'", psz );
EnsureUTF8( psz );
- asprintf( &p_sys->psz_title, psz );
- free( psz );
+ msg_Dbg( p_demux, " - title=`%s'", psz );
+ p_sys->psz_title = psz;
i_skip -= i_len;
}
i_skip -= 2;
stream_Read( p_demux->s, psz, i_len );
psz[i_len] = '\0';
- msg_Dbg( p_demux, " - author=`%s'", psz );
EnsureUTF8( psz );
- asprintf( &p_sys->psz_artist, psz );
- free( psz );
+ msg_Dbg( p_demux, " - author=`%s'", psz );
+ p_sys->psz_artist = psz;
i_skip -= i_len;
}
i_skip -= 2;
stream_Read( p_demux->s, psz, i_len );
psz[i_len] = '\0';
- msg_Dbg( p_demux, " - copyright=`%s'", psz );
EnsureUTF8( psz );
- asprintf( &p_sys->psz_copyright, psz );
- free( psz );
+ msg_Dbg( p_demux, " - copyright=`%s'", psz );
+ p_sys->psz_copyright = psz;
i_skip -= i_len;
}
i_skip -= 2;
stream_Read( p_demux->s, psz, i_len );
psz[i_len] = '\0';
- msg_Dbg( p_demux, " - comment=`%s'", psz );
EnsureUTF8( psz );
- asprintf( &p_sys->psz_description, psz );
- free( psz );
+ msg_Dbg( p_demux, " - comment=`%s'", psz );
+ p_sys->psz_description = psz;
i_skip -= i_len;
}
i_skip -= 2;
memcpy( psz, p_peek, i_len );
psz[i_len] = '\0';
- msg_Dbg( p_demux, " - title=`%s'", psz );
EnsureUTF8( psz );
- asprintf( &p_sys->psz_title, psz );
- free( psz );
+ msg_Dbg( p_demux, " - title=`%s'", psz );
+ p_sys->psz_title = psz;
}
p_peek += i_len;
memcpy( psz, p_peek, i_len );
psz[i_len] = '\0';
- msg_Dbg( p_demux, " - artist=`%s'", psz );
EnsureUTF8( psz );
- asprintf( &p_sys->psz_artist, psz );
- free( psz );
+ msg_Dbg( p_demux, " - artist=`%s'", psz );
+ p_sys->psz_artist = psz;
}
p_peek += i_len;
memcpy( psz, p_peek, i_len );
psz[i_len] = '\0';
- msg_Dbg( p_demux, " - Copyright=`%s'", psz );
EnsureUTF8( psz );
- asprintf( &p_sys->psz_copyright, psz );
- free( psz );
+ msg_Dbg( p_demux, " - Copyright=`%s'", psz );
+ p_sys->psz_copyright = psz;
}
p_peek += i_len;
memcpy( psz, p_peek, i_len );
psz[i_len] = '\0';
- msg_Dbg( p_demux, " - Comment=`%s'", psz );
EnsureUTF8( psz );
- asprintf( &p_sys->psz_description, psz );
- free( psz );
+ msg_Dbg( p_demux, " - Comment=`%s'", psz );
+ p_sys->psz_description = psz;
}
/* This might be unusefull */
p_peek += i_len;