Save an MPEG2 compressed file from live stream

Sérgio Agostinho sergio.r.agostinho at
Tue Dec 23 06:54:07 PST 2014

From what you describe the EOS callback is returning. It is locking somewhere else.

You really need to take care in the way you use the sdk functions. From the snippet you sent, all these functions
You’re supposed to free the the resource they return


> On 23 Dec 2014, at 09:38, Paul Barber <paul.barber at> wrote:
> Message-ID: <20684A1E-36C6-4D60-8DF6-67FBA7050EFC at>
> Content-Type: text/plain; charset=utf-8
> Hi Sergio, 
> >Can you try only invoking the gtk_main_quit() only after you enter and exit the EOS callback. 
> OK, this hangs at the same place.
> >In theory you only need to add the probe with the downstream event mask, unless there’s an actual reason to block data flow.
> Without the blocking mask, it also locks at the same place.
> >Where is it locking exactly?
> At the point of return from the callback. I see the printout from:
> g_print("Return from pad callback\n");
> The pipeline has 2 tees and so at least 5 threads. Is this a threading issue?
> Cheers,
> Paul.
> -- 
> Sent from my Android phone with K-9 Mail. Please excuse my brevity._______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at

More information about the gstreamer-devel mailing list