<div dir="ltr"><div>you can also use gst_bus_async_signal_func to convert messages on the bus to signals which you can mask as callbacks within your interface. What you are trying to do is similar if not the same as what gstplayer does. I would suggest you check gstplayer under gst-libs/gst/player in gst-plugins-bad.<br><br></div>Dimitrios</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 1, 2017 at 1:48 AM, Nicolas Dufresne <span dir="ltr"><<a href="mailto:nicolas@ndufresne.ca" target="_blank">nicolas@ndufresne.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Le mardi 31 janvier 2017 à 04:31 -0800, deepthips a écrit :<br>
> I have a gstreamer code (say playback.c) with basic functions such as load,<br>
> play, stop, seek etc.<br>
> I have a testapp which will link the playback.c library and call those<br>
> functions.<br>
> I need to post current position from playback.c to my testapp (to update the<br>
> progress bar). Like a callback function. How is it done in gstreamer. Saw<br>
> posting to gst bus and all. But my testapp should not be using gstreamer<br>
> directly. It is like an independent application.<br>
<br>
</span>In general, the position is simply being polled using a timer (checked<br>
regularly).<br>
<span class="HOEnZb"><font color="#888888"><br>
Nicolas</font></span><br>______________________________<wbr>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.<wbr>freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a><br>
<br></blockquote></div><br></div>