gst/elements/gstcapsfilter.c: Allow NULL as filter-caps (which means "any").

Original commit message from CVS:
* gst/elements/gstcapsfilter.c: (gst_capsfilter_set_property):
Allow NULL as filter-caps (which means "any").
This commit is contained in:
Ronald S. Bultje 2005-08-07 13:37:08 +00:00
parent 4e2d045ed2
commit c80125e55b
4 changed files with 16 additions and 5 deletions

View file

@ -1,3 +1,8 @@
2005-08-07 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* gst/elements/gstcapsfilter.c: (gst_capsfilter_set_property):
Allow NULL as filter-caps (which means "any").
2005-08-05 Stefan Kost <ensonic@users.sf.net>
* docs/libs/gstreamer-libs-sections.txt:

2
common

@ -1 +1 @@
Subproject commit c99f9050f296219783c6717efe319dc741d2e2d3
Subproject commit 856fbbfa88621ab67df141ead8d4d3df32c5c176

View file

@ -152,11 +152,14 @@ gst_capsfilter_set_property (GObject * object, guint prop_id,
switch (prop_id) {
case PROP_FILTER_CAPS:{
GstCaps *new_caps = gst_caps_copy (gst_value_get_caps (value));
const GstCaps *new_caps_val = gst_value_get_caps (value);
GstCaps *new_caps;
GstCaps *old_caps;
if (new_caps == NULL) {
if (new_caps_val == NULL) {
new_caps = gst_caps_new_any ();
} else {
new_caps = gst_caps_copy (new_caps_val);
}
old_caps = capsfilter->filter_caps;

View file

@ -152,11 +152,14 @@ gst_capsfilter_set_property (GObject * object, guint prop_id,
switch (prop_id) {
case PROP_FILTER_CAPS:{
GstCaps *new_caps = gst_caps_copy (gst_value_get_caps (value));
const GstCaps *new_caps_val = gst_value_get_caps (value);
GstCaps *new_caps;
GstCaps *old_caps;
if (new_caps == NULL) {
if (new_caps_val == NULL) {
new_caps = gst_caps_new_any ();
} else {
new_caps = gst_caps_copy (new_caps_val);
}
old_caps = capsfilter->filter_caps;