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?? |
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@akfree.it> wrote:
------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
On Fri, 2011-01-21 at 15:55 +0530, vineeth wrote:
> 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 <[hidden email]> wrote: > > Hello! > > when i try to get some informations about the track using the > GST_MESSAGE_TAG i get nothing. Your code has some flaws. > > int MyStreamer_bus_call(GstBus *bus, GstMessage *msg, gpointer > data) > { > GstTagList *taglist=gst_tag_list_new(); No need to create a taglist here. > char *c,*artist; > GMainLoop *loop = (GMainLoop*) data; > > switch(GST_MESSAGE_TYPE(msg)){ You need to add a case for the tag message type before attempting to parse it. > 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?? -- Thiago > -- > 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 > [hidden email] > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel > > > ------------------------------------------------------------------------------ > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > Finally, a world-class log management solution at an even better price-free! > Download using promo code Free_Logger_4_Dev2Dev. Offer expires > February 28th, so secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsight-sfd2d > _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |