]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/gstreamer0-10.git/commitdiff
Reference the caps used as filtercaps
authorDavid Schleef <ds@schleef.org>
Mon, 14 Jul 2003 08:23:28 +0000 (08:23 +0000)
committerDavid Schleef <ds@schleef.org>
Mon, 14 Jul 2003 08:23:28 +0000 (08:23 +0000)
Original commit message from CVS:
Reference the caps used as filtercaps

gst/parse/grammar.y

index 5522dfda345e913d04ee21d13e47166886f3a427..7cdb27479c57fe1a93c50d85b18d61c932218994 100644 (file)
@@ -611,6 +611,8 @@ link:               linkpart LINK linkpart        { $$ = $1;
                                                  if (!$$->caps)
                                                    ERROR (GST_PARSE_ERROR_LINK, "could not parse caps \"%s\"", $2);
                                                  gst_parse_strfree ($2);
+                                                 gst_caps_ref($$->caps);
+                                                 gst_caps_sink($$->caps);
                                                }
                                                $$->sink_name = $3->src_name;
                                                $$->sink_pads = $3->src_pads;