GNOME Bugzilla – Bug 449414
[capsfilter] Copy of passed GstCaps taken instead of reference
Last modified: 2007-06-27 11:24:24 UTC
Please describe the problem: <Timbo> if you're fiddling with documentation you might also change http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer-plugins/html/gstreamer-plugi ns-capsfilter.html to say that settings the caps property takes a copy of your GstCaps, not a reference :) <thaytan> Timbo: it'd be better to fix capsfilter to take a reference, not a copy ;) Steps to reproduce: 1. Employ a capsfilter element 2. Set "caps" property 3. Notice no reference taken on GstCaps object passed Actual results: No reference is taken on the GstCaps object passed to the capsfilter element Expected results: A reference to be taken on the GstCaps object passed to the capsfilter element Does this happen every time? Yes Other information:
Created attachment 90325 [details] [review] Patch to take a reference instead of a copy when setting "caps"
Patch by: Tim Angus <tim at ngus dot net> * plugins/elements/gstcapsfilter.c: (gst_capsfilter_class_init), (gst_capsfilter_set_property): Take a reference instead of a copy when setting "caps". Fix documentation to clarify this behaviour. Fixes #449414.