[gst-devel] gst_tag_list_get_string

vineeth nvineeth at gmail.com
Fri Jan 21 11:25:32 CET 2011


Initially you can check if the tags are set properly using :
id3v2 --list mp3-filename

--vineeth


On Thu, Jan 13, 2011 at 7:51 PM, bonkers <holzer.st at akfree.it> wrote:

>
> 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.
>
>
> ------------------------------------------------------------------------------
> Protect Your Site and Customers from Malware Attacks
> Learn about various malware tactics and how to avoid them. Understand
> malware threats, the impact they can have on your business, and how you
> can protect your company and customers by using code signing.
> http://p.sf.net/sfu/oracle-sfdevnl
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20110121/4e29bd74/attachment.htm>


More information about the gstreamer-devel mailing list