diff options
author | Wim Taymans <wim.taymans@collabora.co.uk> | 2012-03-11 19:06:59 +0100 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2012-03-11 19:06:59 +0100 |
commit | 77299ba6aeb30a80b4ce9fc1fffd5e1c98c0842a (patch) | |
tree | 260b936d9a08939e0ac39165ffeb328cb6791fe5 /gst/audiovisualizers/gstbaseaudiovisualizer.c | |
parent | 857a9564f1992829655d4648898e069889f51844 (diff) |
fix for caps api changes
Diffstat (limited to 'gst/audiovisualizers/gstbaseaudiovisualizer.c')
-rw-r--r-- | gst/audiovisualizers/gstbaseaudiovisualizer.c | 5 |
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); |