[gst-devel] Discovering what element caused a warning?

Sebastian Dröge sebastian.droege at collabora.co.uk
Fri Jul 31 07:07:01 CEST 2009


Am Donnerstag, den 30.07.2009, 21:49 +0200 schrieb Murray Cumming:
> On Thu, 2009-07-30 at 11:37 +0900, ved kpl wrote:
> > GST_ELEMENT_NAME(GST_MESSAGE_SRC(msg)) will printout the name of the
> > element that has posted the message.
> 
> Thanks. That worked perfectly.

You should check if the message src was really a GstElement. It could
also be any other GstObject subtype (but usually is a GstElement)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20090731/e03c6162/attachment.pgp>


More information about the gstreamer-devel mailing list