GNOME Bugzilla – Bug 776612
adaptivedemux: Handle SEEK event only once
Last modified: 2017-02-02 10:42:13 UTC
send_event() of parent class (i.e., GstBinClass) iterates srcpads to send SEEK event. And performing it per srcpad is inefficient. Note that, Decodebin2 sends SEEK event directly to adaptivedemux by using gst_element_send_event()
Created attachment 342610 [details] [review] adaptivedemux: Handle SEEK event only once
Comment on attachment 342610 [details] [review] adaptivedemux: Handle SEEK event only once Isn't this exactly the same as the GstBin implementation? Iterating over all srcpads and sending the event. You probably instead want to handle seek events directly in send_event(). But to de-duplicate seek events, do that based on the event's sequence number.
(In reply to Sebastian Dröge (slomo) from comment #2) > Comment on attachment 342610 [details] [review] [review] > adaptivedemux: Handle SEEK event only once > > Isn't this exactly the same as the GstBin implementation? Iterating over all > srcpads and sending the event. Iterator was used only to finding srcpad, and iteration will be stopped when finding srcpad. Anyway, checking seqnum seem to be more pretty :)
Created attachment 342682 [details] [review] adaptivedemux: Handle SEEK event only once
Created attachment 342683 [details] [review] adaptivedemux: Handle SEEK event only once
Attachment 342683 [details] pushed as 780c57d - adaptivedemux: Handle SEEK event only once