Command line for compiling
Ian Davidson
id012c3076 at blueyonder.co.uk
Sun Jan 12 04:21:27 PST 2014
I have realised that the documentation says that calls to
g_main_loop_run can be nested - so my fears are probably groundless.
Ian
On 11/01/2014 11:58, Ian Davidson wrote:
>
> I have taken a break from programming over the festivities and have
> now turned my thoughts back to my program.
>
> With my GStreamer console based application, the program's main 'lined
> up all the gstreamer elements', set the ball rolling, and then went to
> g_main_loop_run which waited for interesting signals. I realise that
> there was a lot of multi-threading and other clever stuff going on,
> but what I had to write was impressively simple.
>
> Then I turned to look at my GUI interface and chose GTK as, seemingly,
> the best way to write my code. I notice that the main program lines up
> all the buttons I want on the screen, I have event handlers for when
> buttons are pressed and then I go to gtk_main() to wait for things to
> happen.
>
> My hang-up is that I don't know how to reconcile these two bits of
> code waiting. I think that I have read that gtk_main is a wrapper for
> g_main_loop_run, so there must be something from there that I need to
> incorporate into my main loop. Is there some sample code I can look at?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140112/da24579a/attachment.html>
More information about the gstreamer-devel
mailing list