[vlc-devel] libvlc status? [BIS]

Tanguy Krotoff tkrotoff at gmail.com
Tue Apr 1 21:59:51 CEST 2008


It works under Linux but it does not under Windows :/

On 4/1/08, Tanguy Krotoff <tkrotoff at gmail.com> wrote:
> I feel so stupid! it works now!!!
> Never do this in your code if you want to get meta data:
> libvlc_media_release(_vlcMedia); HUHU
> Sorry for bothering you with my stupidity...
>
> I do simply this and it works:
>
> vlcMedia = p_libvlc_media_new(vlcInstance, _filename);
> vlcMediaPlayer = p_libvlc_media_player_new_from_media(vlcMedia);
> connectToAllVLCEvents();
> artist = p_libvlc_media_get_meta(vlcMedia, libvlc_meta_Artist);
> printf(artist);
>
> So without playing the file.
>
> There is still something that I don't understand,
> this code does not work:
>
> callback(event)
> {
>  if (event->type == libvlc_MediaMetaChanged)
>  {
>    meta = p_libvlc_media_get_meta(vlcMedia,
> event->u.media_meta_changed.meta_type);
>    printf(meta);
>  }
> }
>
> And each time I get a libvlc_MediaMetaChanged event, meta string is
> just empty... even if the code above works fine.
>
> Do you have a rational explanation?
>
> --
> Tanguy Krotoff <tkrotoff at gmail.com>
> +33 6 68 42 70 24
>


-- 
Tanguy Krotoff <tkrotoff at gmail.com>
+33 6 68 42 70 24



More information about the vlc-devel mailing list