mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
log caps
Original commit message from CVS: log caps
This commit is contained in:
parent
b3ac5a0f4e
commit
275498ed35
2 changed files with 6 additions and 2 deletions
|
@ -154,9 +154,9 @@ gst_capsfilter_set_property (GObject * object, guint prop_id,
|
||||||
|
|
||||||
switch (prop_id) {
|
switch (prop_id) {
|
||||||
case PROP_FILTER_CAPS:{
|
case PROP_FILTER_CAPS:{
|
||||||
const GstCaps *new_caps_val = gst_value_get_caps (value);
|
|
||||||
GstCaps *new_caps;
|
GstCaps *new_caps;
|
||||||
GstCaps *old_caps;
|
GstCaps *old_caps;
|
||||||
|
const GstCaps *new_caps_val = gst_value_get_caps (value);
|
||||||
|
|
||||||
if (new_caps_val == NULL) {
|
if (new_caps_val == NULL) {
|
||||||
new_caps = gst_caps_new_any ();
|
new_caps = gst_caps_new_any ();
|
||||||
|
@ -168,6 +168,8 @@ gst_capsfilter_set_property (GObject * object, guint prop_id,
|
||||||
capsfilter->filter_caps = new_caps;
|
capsfilter->filter_caps = new_caps;
|
||||||
gst_caps_unref (old_caps);
|
gst_caps_unref (old_caps);
|
||||||
|
|
||||||
|
GST_DEBUG_OBJECT (capsfilter, "set new caps %" GST_PTR_FORMAT, new_caps);
|
||||||
|
|
||||||
/* FIXME: Need to activate these caps on the pads */
|
/* FIXME: Need to activate these caps on the pads */
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -154,9 +154,9 @@ gst_capsfilter_set_property (GObject * object, guint prop_id,
|
||||||
|
|
||||||
switch (prop_id) {
|
switch (prop_id) {
|
||||||
case PROP_FILTER_CAPS:{
|
case PROP_FILTER_CAPS:{
|
||||||
const GstCaps *new_caps_val = gst_value_get_caps (value);
|
|
||||||
GstCaps *new_caps;
|
GstCaps *new_caps;
|
||||||
GstCaps *old_caps;
|
GstCaps *old_caps;
|
||||||
|
const GstCaps *new_caps_val = gst_value_get_caps (value);
|
||||||
|
|
||||||
if (new_caps_val == NULL) {
|
if (new_caps_val == NULL) {
|
||||||
new_caps = gst_caps_new_any ();
|
new_caps = gst_caps_new_any ();
|
||||||
|
@ -168,6 +168,8 @@ gst_capsfilter_set_property (GObject * object, guint prop_id,
|
||||||
capsfilter->filter_caps = new_caps;
|
capsfilter->filter_caps = new_caps;
|
||||||
gst_caps_unref (old_caps);
|
gst_caps_unref (old_caps);
|
||||||
|
|
||||||
|
GST_DEBUG_OBJECT (capsfilter, "set new caps %" GST_PTR_FORMAT, new_caps);
|
||||||
|
|
||||||
/* FIXME: Need to activate these caps on the pads */
|
/* FIXME: Need to activate these caps on the pads */
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue