<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
I tried examining the meta_type field in
libvlc_event_t->media_meta_changed but it was almost always
libvlc_meta_ArtworkURL and I never got a <em>libvlc_meta_Artist</em>,<em>
ibvlc_meta_Title</em>, or <em>libvlc_meta_Album</em>.<br>
<br>
On 10-07-10 10:31 AM, Pierre d'Herbemont wrote:
<blockquote
 cite="mid:AANLkTinPFUjH0xn24b4Q-hlVONc3rsfVQZ-9XMMidcHK@mail.gmail.com"
 type="cite">
  <pre wrap="">On Sat, Jul 10, 2010 at 1:17 AM, Jason Butler <a class="moz-txt-link-rfc2396E" href="mailto:jbutler@hcn-inc.com"><jbutler@hcn-inc.com></a> wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">I am using libvlc 1.1.0 to play an audio steam on Linux. I want to get the
title, album, and artist every time the track changes so I am hooking up a
callback function to the libvlc_MediaMetaChanged event. The problem is when
the stream starts playing the libvlc_MediaMetaChanged event is sent serveral
times before all the track meta data is valid. If I call
 libvlc_media_get_meta(m,libvlc_meta_Artist), or
libvlc_media_get_meta(m,libvlc_meta_Album) too soon then I get a segment
fault.  I thought about waiting for the libvlc_MediaPlayerPlaying event but
libvlc_MediaMetaChanged event is still sent several times before the album
and artist data is valid.

Is there a way to check if the artist and album data is valid before calling
 libvlc_media_get_meta?
    </pre>
  </blockquote>
  <pre wrap="">
There is the meta_type field in the libvlc_event_t that describes what
meta (artist...) has changed. This should be what your are looking
for.

Pierre.
_______________________________________________
vlc-devel mailing list
To unsubscribe or modify your subscription options:
<a class="moz-txt-link-freetext" href="http://mailman.videolan.org/listinfo/vlc-devel">http://mailman.videolan.org/listinfo/vlc-devel</a>
  </pre>
</blockquote>
<br>
</body>
</html>