<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">First - love your work guys.  I think more people need to know that.  So getting inexperienced people using your stuff is the way to go.  So its a bit of a problem when the hello world doesn't work as expected, so I hope you don't think this trivial<div class=""><br class=""></div><div class="">First, my setup.  I do not normally develop in C, so my experience is on a pretty fresh XCode, and my machine is pretty clean. </div><div class="">Following the instructions at <a href="https://gstreamer.freedesktop.org/documentation/tutorials/basic/hello-world.html" class="">https://gstreamer.freedesktop.org/documentation/tutorials/basic/hello-world.html</a></div><div class=""><br class=""></div><div class="">Everything compiles and runs, I get audio, but <b class="">no window with video</b>.</div><div class=""><br class=""></div><div class="">I was able to run the <span style="font-family: Menlo; font-size: 11px; background-color: rgb(255, 255, 255);" class="">gst_parse_launch command string through </span><span style="font-family: Menlo; font-size: 11px; background-color: rgb(255, 255, 255);" class="">/Library/Frameworks/GStreamer.framework/Versions/1.0/bin/</span><span style="font-family: Menlo; font-size: 11px; background-color: rgb(255, 255, 255);" class="">gst-launch-1.0 with no trouble. Window came up fine.</span></div><div class=""><span style="font-family: Menlo; font-size: 11px; background-color: rgb(255, 255, 255);" class=""><br class=""></span></div><div class=""><span style="background-color: rgb(255, 255, 255);" class=""><font face="Menlo" class=""><span style="font-size: 11px;" class="">After trying to work out how to debug such a problem - and I would love to have advice from an experienced XCode developer - How do you debug windows events??? I'm guessing you need to be in the know of exactly what debug context will expose them from the rest of the debugging data.</span></font></span></div><div class=""><span style="background-color: rgb(255, 255, 255);" class=""><font face="Menlo" class=""><span style="font-size: 11px;" class=""><br class=""></span></font></span></div><div class=""><span style="background-color: rgb(255, 255, 255);" class=""><font face="Menlo" class=""><span style="font-size: 11px;" class="">I then tried the <b class="">example </b></span></font></span><font face="Menlo" class=""><b style="font-size: 11px;" class="">playback-tutorial-1.c.  That worked.</b><span class=""> So direct instantiation and manipulation of the </span></font><span class="">g_object </span><span class="">playbin works.</span></div><span class=""><br class=""></span><div class=""><font face="Menlo" class=""><span style="font-size: 11px;" class="">With my inexperienced xcode / c debugging I discovered: </span></font></div><div class=""><font face="Menlo" class=""><span style="font-size: 11px;" class=""><br class=""></span></font></div><div class=""><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(209, 47, 27); background-color: rgb(255, 255, 255);" class=""><span style="color: #000000" class="">pipeline = gst_parse_launch (</span>"playbin uri='<a href="file:///Users/drsog/Local/GStream_dev/gst-docs/examples/tutorials/test.mp4" class="">file:///Users/drsog/Local/GStream_dev/gst-docs/examples/tutorials/test.mp4</a>'"<span style="color: #000000" class="">, error);</span></div></div><div style="margin: 0px; font-stretch: normal; line-height: normal; background-color: rgb(255, 255, 255);" class=""><span style="color: rgb(0, 0, 0); font-family: Menlo; font-size: 11px;" class="">returns with a pipeline with </span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; background-color: rgb(255, 255, 255);" class=""><font face="Menlo" class=""><span style="font-size: 11px;" class=""><span class="Apple-tab-span" style="white-space:pre">     </span>current_state<span class="Apple-tab-span" style="white-space: pre;">     </span>GstState<span class="Apple-tab-span" style="white-space: pre;">  </span>GST_STATE_NULL</span></font></div><div style="margin: 0px; font-stretch: normal; line-height: normal; background-color: rgb(255, 255, 255);" class=""><span style="color: rgb(0, 0, 0); font-family: Menlo; font-size: 11px;" class=""><span class="Apple-tab-span" style="white-space:pre">       </span>error is null </span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(209, 47, 27); background-color: rgb(255, 255, 255);" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(209, 47, 27); background-color: rgb(255, 255, 255);" class=""><br class=""></div><span class="">After gst_element_set_state (pipeline, GST_STATE_PLAYING); </span><span style="font-family: Menlo; font-size: 11px; background-color: rgb(255, 255, 255);" class="">pipeline</span><span class=""> has the following state:<br class=""></span><div style="margin: 0px; font-stretch: normal; line-height: normal; background-color: rgb(255, 255, 255);" class=""><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><font face="Menlo" class=""><span style="font-size: 11px;" class="">current_state<span class="Apple-tab-span" style="white-space: pre;">        </span>GstState<span class="Apple-tab-span" style="white-space: pre;">  </span>GST_STATE_READY</span></font></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><font face="Menlo" class=""><span style="font-size: 11px;" class="">next_state<span class="Apple-tab-span" style="white-space:pre">     </span>GstState<span class="Apple-tab-span" style="white-space:pre">    </span>GST_STATE_PAUSED</span></font></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><font face="Menlo" class=""><span style="font-size: 11px;" class="">pending_state<span class="Apple-tab-span" style="white-space: pre;">       </span>GstState<span class="Apple-tab-span" style="white-space: pre;">  </span>GST_STATE_PLAYING</span></font></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><font face="Menlo" class=""><span style="font-size: 11px;" class="">and ret = </span></font><span style="color: rgb(49, 89, 93); font-family: Menlo; font-size: 11px;" class="">GST_STATE_CHANGE_FAILURE</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><font face="Menlo" class=""><span style="font-size: 11px;" class="">So the obvious question is how to get debugging info on </span></font><span style="color: rgb(49, 89, 93); font-family: Menlo; font-size: 11px;" class="">GST_STATE_CHANGE_FAILURE.</span></div><span class="">Or is the practice to recompile al of gst to get debugging info (or on the mac apparently </span><a href="https://medium.com/@maxraskin/background-1b4b6a9c65be" class="">dSYM packages with dwarf-with-dsym set</a>) so xcode can bind the sources in debug), and then trace to the cause?</div><span class=""><br class=""></span><div class="">Happy to look into it further myself if someone would be kind enough to mentor me so I don't go down too many rabbit holes.</div><div class=""><br class=""></div><div class="">Regards,</div><div class=""><br class=""></div><div class="">Sean Ogden</div></body></html>