From 086e0f436e87119c3fdfcbfa75ed2cad1b97b0a6 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Tue, 6 Jan 2004 23:42:37 +0000 Subject: [PATCH] sys/oss/gstosssink.c: Fix for bug shown by poisoning Original commit message from CVS: 2004-01-07 Benjamin Otte * sys/oss/gstosssink.c: (gst_osssink_sink_fixate): Fix for bug shown by poisoning --- ChangeLog | 5 +++++ sys/oss/gstosssink.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 39ecf148d3..01c28e048e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-01-07 Benjamin Otte + + * sys/oss/gstosssink.c: (gst_osssink_sink_fixate): + Fix for bug shown by poisoning + 2004-01-06 Ronald Bultje * sys/v4l/gstv4lmjpegsrc.c: (gst_v4lmjpegsrc_get), diff --git a/sys/oss/gstosssink.c b/sys/oss/gstosssink.c index efd1e4d1e4..dd0a2f36ad 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;