event() function sometimes is not called in subclasses of GstBaseSrc

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

event() function sometimes is not called in subclasses of GstBaseSrc

Speedy Gonzales-2
Hi,

I'm trying to develop a plugin which is supposed to read from a file.
I run into a problem and I don't think I can solve this myself

I need to handle GST_EVENT_SEEK event, sent for example after
seek_simple(). In order to do that, I override GstBaseSrc's event()
function. When seek_simple() is called on a pipeline everything works
well: event() function is called and GST_EVENT_SEEK event is passed
(example in Python):

self.somepipeline.seek_simple(gst.FORMAT_BUFFERS, gst.SEEK_FLAG_FLUSH, position)
-> GstSomeElement event() called

However, when calling seek_simple() directly on GstSomeElement
element, instead of it's event() function, send_event() of parent
class is called:

self.someelement.seek_simple(gst.FORMAT_BUFFERS, gst.SEEK_FLAG_FLUSH, position)
-> GstBaseSrc send_event() called

To handle all events one should override also send_event(). Maybe
there is something I misunderstood.

Regards

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel