if (!strcmp( owner, "http://musicbrainz.org" ))
{
/* ID3v2 UFID contains up to 64 bytes binary data
- * but in our case it will be a '\0'
+ * but in our case it will be a '\0'
* terminated string */
char *psz_ufid = (char*) malloc( 64 );
int j = 0;
{
p_txxx = dynamic_cast<TagLib::ID3v2::UserTextIdentificationFrame*>(*iter);
const char *psz_desc= p_txxx->description().toCString();
- vlc_meta_AddExtra( p_meta, psz_desc,
+ vlc_meta_AddExtra( p_meta, psz_desc,
p_txxx->fieldList().toString().toCString());
}
#if 0
{
input_item_t *p_item = input_GetItem( p_input );
if( p_item )
- {
- vlc_mutex_lock( &p_item->lock );
- p_item->i_duration = i_ogg_v_length * 1000000;
- vlc_mutex_unlock( &p_item->lock );
- }
+ input_item_SetDuration( p_item,
+ (mtime_t) i_ogg_v_length * 1000000 );
vlc_object_release( p_input );
}
-
+
}
#if 0 /* at this moment, taglib is unable to detect ogg/flac files
* becauses type detection is based on file extension:
{
input_item_t *p_item = input_GetItem( p_input );
if( p_item )
- {
- vlc_mutex_lock( &p_item->lock );
- p_item->i_duration = i_ogg_f_length * 1000000;
- vlc_mutex_unlock( &p_item->lock );
- }
+ input_item_SetDuration( p_item,
+ (mtime_t) i_ogg_f_length * 1000000 );
vlc_object_release( p_input );
}
}
{
input_item_t *p_item = input_GetItem( p_input );
if( p_item )
- {
- vlc_mutex_lock( &p_item->lock );
- p_item->i_duration = i_flac_length * 1000000;
- vlc_mutex_unlock( &p_item->lock );
- }
+ input_item_SetDuration( p_item,
+ (mtime_t) i_flac_length * 1000000 );
vlc_object_release( p_input );
}
}
playlist_t *p_playlist = (playlist_t *)p_this;
meta_export_t *p_export = (meta_export_t *)p_playlist->p_private;
input_item_t *p_item = p_export->p_item;
-
+
if( p_item == NULL )
{
msg_Err( p_this, "Can't save meta data of an empty input" );
TagLib::ID3v2::TextIdentificationFrame p_frame( p_byte ); \
p_frame.setText( psz_meta ); \
p_id3tag->addFrame( &p_frame ); \
+ free( psz_meta ); \
} \
- else free( psz_meta );
WRITE( Publisher, "TPUB" );
WRITE( Copyright, "TCOP" );
WRITE( EncodedBy, "TENC" );
WRITE( Language, "TLAN" );
-
+
#undef WRITE
}