handle events / override event handling in appsrc

Cigarah cigarah at gmail.com
Thu Dec 26 21:11:44 PST 2013


/Ok, but with this it's impossible that appsrc calls the basesrc 
send_event handling. You overwrote it in class_init and don't chain up 
to the parent class' send_event in your own send_event. /

Yes, I doubted that was incomplete. Can I get steps to do chain up. 

/Is it maybe the pad event handling function for which you still see logs 
from basesrc? /
I am seeing the logs from send_event function of basesrc 

/Which events, and why is the default handling not working for you? /
FLUSH START and FLUSH STOP events.
There is nothing that is done for these events that's why default handling
is not working. See the below code from gstbasesrc.c. There is just  a break
statement after two case statements. There is no handling let alone default
handling.

 switch (GST_EVENT_TYPE (event)) { 
      /* bidirectional events */ 
    case GST_EVENT_FLUSH_START: 
        
    case GST_EVENT_FLUSH_STOP: 

      break;
...






--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/handle-events-override-event-handling-in-appsrc-tp4664245p4664285.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list