From 9929ccd9d1782b85b86919b6fdf9e112444d9a2f Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Fri, 2 Jan 2004 10:51:57 +0000 Subject: [PATCH] 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. --- ChangeLog | 5 +++++ ext/mpeg2enc/gstmpeg2enc.cc | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index a6090f83f5..f76333b90a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-01-02 Ronald Bultje + + * ext/mpeg2enc/gstmpeg2enc.cc: + fix const/nonconst compile issue. + 2004-01-02 David Schleef * sys/xvimage/xvimagesink.c: (gst_xvimagesink_fixate), diff --git a/ext/mpeg2enc/gstmpeg2enc.cc b/ext/mpeg2enc/gstmpeg2enc.cc index a435829e32..902497abf8 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;