[gst-devel] gstplay example app failing to seek

Benjamin Otte in7y118 at public.uni-hamburg.de
Mon Dec 15 08:45:02 CET 2003


We should keep this use case in mind for the data passing rework in 0.9.
For now adding a timeout (I'd vote for half a second max) and then
returning FALSE sounds ok.

Benjamin


On Mon, 15 Dec 2003, Ronald Bultje wrote:

> Hi Julien & gang,
>
> the gstplay example app is failing to seek because of an inconsistency
> in queue that I do not know of how to fix it. Event forwarding in a
> queue works like this: we add the queue to a (mutex-protected) GQueue
> (GList-sort of thing), and then we wait for the chain function (so the
> sink-thread) to run, pick up the pending events, run them backwards (in
> their own thread) and signal the waiting event origin that the event is
> done, plus a valid return value. Fairly simple and straightforward.
>
> Now, the issue in gstplay is that you're seeking on a video queue, where
> it is not passing data. This is an issue, because if there's no data,
> then the chain function will never run and thus the event will never be
> handled! See the issue? That's what's blocking the event function from
> returning in libgstplay.
>
> How to fix it... That's tricky. We could add a timeout to the
> g_cond_wait() event function, but that's a workaround. I still think
> it's a good idea, but not as a fix on itself, but more as a protection
> for possible other bugs. If there's no reply after two seconds (or so),
> return FALSE automatically. For the issue itself, I'm not sure. The
> question here is really: how can I detect whether a pipeline that's in
> the PLAYING state is actually passing data? Any help on this is
> appreciated [therefore: CC to gst-devel ;) )].
>
> Ronald
>
> --
> Ronald Bultje <rbultje at ronald.bitfreak.net>
> Linux Video/Multimedia developer
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive?  Does it
> help you create better code?  SHARE THE LOVE, and help us help
> YOU!  Click Here: http://sourceforge.net/donate/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>





More information about the gstreamer-devel mailing list