summaryrefslogtreecommitdiff
path: root/gst/audiovisualizers/gstbaseaudiovisualizer.c
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2012-03-11 19:06:59 +0100
committerWim Taymans <wim.taymans@collabora.co.uk>2012-03-11 19:06:59 +0100
commit77299ba6aeb30a80b4ce9fc1fffd5e1c98c0842a (patch)
tree260b936d9a08939e0ac39165ffeb328cb6791fe5 /gst/audiovisualizers/gstbaseaudiovisualizer.c
parent857a9564f1992829655d4648898e069889f51844 (diff)
fix for caps api changes
Diffstat (limited to 'gst/audiovisualizers/gstbaseaudiovisualizer.c')
-rw-r--r--gst/audiovisualizers/gstbaseaudiovisualizer.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gst/audiovisualizers/gstbaseaudiovisualizer.c b/gst/audiovisualizers/gstbaseaudiovisualizer.c
index 6761d01d9..566303796 100644
--- a/gst/audiovisualizers/gstbaseaudiovisualizer.c
+++ b/gst/audiovisualizers/gstbaseaudiovisualizer.c
@@ -685,11 +685,12 @@ gst_base_audio_visualizer_src_negotiate (GstBaseAudioVisualizer * scope)
if (gst_caps_is_empty (target))
goto no_format;
- gst_caps_truncate (target);
+ target = gst_caps_truncate (target);
} else {
- target = gst_caps_ref ((GstCaps *) templ);
+ target = templ;
}
+ target = gst_caps_make_writable (target);
structure = gst_caps_get_structure (target, 0);
gst_structure_fixate_field_nearest_int (structure, "width", scope->width);
gst_structure_fixate_field_nearest_int (structure, "height", scope->height);