summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorBenjamin Otte <otte@gnome.org>2004-01-06 23:42:37 +0000
committerBenjamin Otte <otte@gnome.org>2004-01-06 23:42:37 +0000
commit086e0f436e87119c3fdfcbfa75ed2cad1b97b0a6 (patch)
treeb322f871f63a4b043c15aaca87f9ccedb8807b2c /sys
parentae16daaec84b79cda4187ab113160cfebbd604e3 (diff)
sys/oss/gstosssink.c: Fix for bug shown by poisoning
Original commit message from CVS: 2004-01-07 Benjamin Otte <in7y118@public.uni-hamburg.de> * sys/oss/gstosssink.c: (gst_osssink_sink_fixate): Fix for bug shown by poisoning
Diffstat (limited to 'sys')
-rw-r--r--sys/oss/gstosssink.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/oss/gstosssink.c b/sys/oss/gstosssink.c
index efd1e4d1..dd0a2f36 100644
--- a/sys/oss/gstosssink.c
+++ b/sys/oss/gstosssink.c
@@ -221,8 +221,8 @@ gst_osssink_sink_fixate (GstPad *pad, const GstCaps *caps)
GstCaps *newcaps;
GstStructure *structure;
- structure = gst_structure_copy(gst_caps_get_structure (caps, 0));
- newcaps = gst_caps_new_full (structure, NULL);
+ newcaps = gst_caps_new_full (gst_structure_copy(gst_caps_get_structure (caps, 0)), NULL);
+ structure = gst_caps_get_structure (newcaps, 0);
if (gst_caps_structure_fixate_field_nearest_int (structure, "rate", 44100)) {
return newcaps;