GNOME Bugzilla – Bug 763337
capsfilter: remove unnecessary gst_pad_has_current_caps() calls for each buffer
Last modified: 2016-03-24 12:51:38 UTC
capsfilter seems to do a lot of gst_pad_get_current_caps() which I think are entirely superfluous and from the comments in the code this is a leftover of caps-being-set-on-buffers or such, e.g. in gst_capsfilter_prepare_buf(). We should be able to optimise that.
Created attachment 323433 [details] [review] capsfilter: optimisation: avoid unnecessary gst_pad_has_current_caps() checks
Created attachment 323434 [details] [review] audiodecoder: avoid unnecessary gst_pad_has_current_caps() checks
Comment on attachment 323434 [details] [review] audiodecoder: avoid unnecessary gst_pad_has_current_caps() checks Maybe gst_audio_decoder_set_needs_format() should become a flag on GstPad and be implemented there?
Attachment 323433 [details] pushed as bc78548 - capsfilter: optimisation: avoid unnecessary gst_pad_has_current_caps() checks
Comment on attachment 323434 [details] [review] audiodecoder: avoid unnecessary gst_pad_has_current_caps() checks Attachment 323434 [details] pushed as f4fb623 - audiodecoder: avoid unnecessary gst_pad_has_current_caps() checks