<div dir="ltr"><div><div>Thank you. With options "--gst-debug=GST_ELEMENT_FACTORY:3,GST_ELEMENT_PADS:3", I got what I want except destruction of GstElement. So I add some code to gst_object_unref():<br>  if (GST_IS_ELEMENT(object) && ((GObject *) object)->ref_count - 1 == 0) {<br>
    g_print("ELEMENT del: %s\n", GST_ELEMENT_NAME(object));<br>  }<br></div><div>Also the debug message don't report the name of new element, and which element new pad add to.<br></div>And with environment variable GST_DEBUG_DUMP_DOT_DIR=/path/to/some-dir/, gst-launch will generate a DOT file for me when state changed. But that help me little, as the pipe will not change to PLAYING. So I need to add a timeout source callback to gst-launch.c for dump dot file every second. :p<br>
<br></div>PS, I found a good document about gstreamer debug: <a href="https://developer.ridgerun.com/wiki/index.php/GStreamer_Debugging">https://developer.ridgerun.com/wiki/index.php/GStreamer_Debugging</a><br></div><div class="gmail_extra">
<br><br><div class="gmail_quote">2013/6/5 Chuck Crisler <span dir="ltr"><<a href="mailto:ccrisler@mutualink.net" target="_blank">ccrisler@mutualink.net</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div>Use the logging system. Start with 'export GST_DEBUG=*:3', look to see what is interesting and then make changes to get more detailed logging. Higher numbers give more logging.<br><br><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/section-checklist-debug.html" target="_blank">http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/section-checklist-debug.html</a><br>

<a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstInfo.html" target="_blank">http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstInfo.html</a><br>
<a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/faq/html/chapter-troubleshooting.html" target="_blank">http://gstreamer.freedesktop.org/data/doc/gstreamer/head/faq/html/chapter-troubleshooting.html</a><br>

<br></div>There are others. Google is your friend.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div class="im">On Wed, Jun 5, 2013 at 5:41 AM, Jacky Lau <span dir="ltr"><<a href="mailto:i90091e@gmail.com" target="_blank">i90091e@gmail.com</a>></span> wrote:<br>

</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><div dir="ltr">Hi, all. I'm using playbin2 to play rtsp stream. As the server report audio and video availability but send empty audio data, playbin2 don't create video sink. And I want to trace the creation and destruction of GstElement and GstPad, and link and unlink of GstPads. How to do it?<br>


<br></div>
<br></div>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br></div>