<p dir="ltr">Sorry for confusion,  it required different args compared to the other callback functions in tutorial  4.</p>
<p dir="ltr">Ricky </p>
<div class="gmail_quote">On Jan 27, 2014 3:15 PM, "Sebastian Dröge" <<a href="mailto:sebastian@centricular.com">sebastian@centricular.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On So, 2014-01-26 at 22:03 -0500, Ricky Houghton wrote:<br>
> This was a huge help - thank for the answers, especially on the weekend -<br>
> much appreciated.<br>
><br>
>  After a bit of digging, I was able to correctly get the source-setup<br>
> signal and set the latency to a lower value.<br>
><br>
> For the benefit of others,  to Tutorial-4.c (in app_function), I added the<br>
> line:<br>
><br>
>  *g_signal_connect(G_OBJECT (data->pipeline), "source-setup",<br>
> (GCallback)source_setup_cb,data);*<br>
><br>
> then I added the following callback function:<br>
><br>
><br>
><br>
> *static void source_setup_cb (GstElement *pipeline, GstElement *source,<br>
> CustomData *data) { // .. stuff removed g_object_set (source, "latency",<br>
> 100, NULL);*<br>
><br>
> * // .. stuff removed}*<br>
><br>
> The source_setup_cb required different args.<br>
<br>
What do you mean with "required different args"? That looks correct and<br>
should work exactly like that.<br>
<br>
--<br>
Sebastian Dröge, Centricular Ltd - <a href="http://www.centricular.com" target="_blank">http://www.centricular.com</a><br>
Expertise, Straight from the Source<br>
<br>_______________________________________________<br>
gstreamer-android mailing list<br>
<a href="mailto:gstreamer-android@lists.freedesktop.org">gstreamer-android@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-android" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-android</a><br>
<br></blockquote></div>