summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2011-12-15 16:42:20 +0000
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2011-12-15 16:42:20 +0000
commit3498912d7bf395ea92939f2b3240b720a4722d3e (patch)
tree739062761ad15c11c3c57316bced512c2aa4fdfc
parent4342eea6371ee49eadc19924a304d6f9376da6f9 (diff)
downloadgstreamer-plugins-bad-3498912d7bf395ea92939f2b3240b720a4722d3e.tar.gz
opus: fix bad merge (stray unmap, undeclared var)
-rw-r--r--ext/opus/gstopusenc.c2
-rw-r--r--ext/opus/gstopusparse.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/opus/gstopusenc.c b/ext/opus/gstopusenc.c
index 72af29a97..ff9243ad4 100644
--- a/ext/opus/gstopusenc.c
+++ b/ext/opus/gstopusenc.c
@@ -188,9 +188,11 @@ gst_opus_enc_class_init (GstOpusEncClass * klass)
{
GObjectClass *gobject_class;
GstAudioEncoderClass *base_class;
+ GstElementClass *gstelement_class;
gobject_class = (GObjectClass *) klass;
base_class = (GstAudioEncoderClass *) klass;
+ gstelement_class = (GstElementClass *) klass;
gobject_class->set_property = gst_opus_enc_set_property;
gobject_class->get_property = gst_opus_enc_get_property;
diff --git a/ext/opus/gstopusparse.c b/ext/opus/gstopusparse.c
index 8dcc4829f..fd7024c62 100644
--- a/ext/opus/gstopusparse.c
+++ b/ext/opus/gstopusparse.c
@@ -295,12 +295,10 @@ gst_opus_parse_parse_frame (GstBaseParse * base, GstBaseParseFrame * frame)
GST_DEBUG_OBJECT (parse, "Found ID header, keeping");
return GST_BASE_PARSE_FLOW_DROPPED;
} else if (is_commentheader) {
- gst_buffer_unmap (frame->buffer, data, size);
gst_buffer_replace (&parse->comment_header, frame->buffer);
GST_DEBUG_OBJECT (parse, "Found comment header, keeping");
return GST_BASE_PARSE_FLOW_DROPPED;
}
- gst_buffer_unmap (frame->buffer, data, size);
g_slist_foreach (parse->headers, (GFunc) gst_buffer_unref, NULL);
parse->headers = NULL;