[gstreamer-bugs] [Bug 503592] gstpad.c does many ref/unref of peer pad in dataflow
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Wed Oct 13 02:36:21 PDT 2010
https://bugzilla.gnome.org/show_bug.cgi?id=503592
GStreamer | gstreamer (core) | git
--- Comment #16 from Wim Taymans <wim.taymans at gmail.com> 2010-10-13 09:36:18 UTC ---
(In reply to comment #15)
> I think this patch is great, definitely a big leap forward!
>
> If it's allowed, I'd point out just a couple of trivial things:
>
> - in gst_pad_chain_data_unchecked you're passing the argument "cache" and then
> reassigning it to NULL. In code readability's sake, wouldn't it be better to
> use a local variable for this?
I experimented with a local variable and with a field in the cache struct.
reassigning the cache paramter resulted in the smallest code but I guess a
local variable would be clearer.
>
> - even though the functions "pad_take_cache", "pad_free_cache", "pad_put_cache"
> and "pad_invalidate_cache" should be implicitly inlined by the gcc, I suggest
> to explicitly add an "inline" statement to make this optimisation more portable
> and make it clear to the reader.
will do
>
> P.S. I'll try and run performance checks on x86 and Atom when possible,
> hopefully already this week.
ok, sweet
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the Gstreamer-bugs
mailing list