[gst-devel] gst_tag_list_get_string

bonkers holzer.st at akfree.it
Thu Jan 13 15:21:10 CET 2011


Hello!

when i try to get some informations about the track using the
GST_MESSAGE_TAG i get nothing.

int MyStreamer_bus_call(GstBus *bus, GstMessage *msg, gpointer data)
{
   GstTagList *taglist=gst_tag_list_new();
   char *c,*artist;
   GMainLoop *loop = (GMainLoop*) data;

   switch(GST_MESSAGE_TYPE(msg)){
      gst_message_parse_tag(msg, &taglist);
      if (gst_tag_list_get_string (taglist, GST_TAG_ARTIST, &artist))
      {
          printf("got artist: %s\n",artist);
      }
      else{
          printf("no artist!! \n");
      }
   }
  return 0;
}

I always get "no artist"!! I´m sure that I set the tags of the mp3 file.

can you help me??
-- 
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/gst-tag-list-get-string-tp3215915p3215915.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.




More information about the gstreamer-devel mailing list