From 9929ccd9d1782b85b86919b6fdf9e112444d9a2f Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Fri, 2 Jan 2004 10:51:57 +0000 Subject: ext/mpeg2enc/gstmpeg2enc.cc: fix const/nonconst compile issue. Original commit message from CVS: 2004-01-02 Ronald Bultje * ext/mpeg2enc/gstmpeg2enc.cc: fix const/nonconst compile issue. --- ext/mpeg2enc/gstmpeg2enc.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ext/mpeg2enc/gstmpeg2enc.cc') diff --git a/ext/mpeg2enc/gstmpeg2enc.cc b/ext/mpeg2enc/gstmpeg2enc.cc index a435829e..902497ab 100644 --- a/ext/mpeg2enc/gstmpeg2enc.cc +++ b/ext/mpeg2enc/gstmpeg2enc.cc @@ -229,6 +229,7 @@ gst_mpeg2enc_loop (GstElement *element) if (!enc->encoder) { const GstCaps *caps; + GstCaps *othercaps; GstData *data; /* make sure we've had data */ @@ -246,8 +247,8 @@ gst_mpeg2enc_loop (GstElement *element) caps, enc->srcpad); /* and set caps on other side */ - caps = enc->encoder->getFormat (); - if (gst_pad_set_explicit_caps (enc->srcpad, caps) <= 0) { + othercaps = enc->encoder->getFormat (); + if (gst_pad_set_explicit_caps (enc->srcpad, othercaps) <= 0) { gst_element_error (element, "Failed to set up encoder properly"); delete enc->encoder; -- cgit v1.2.1