summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--ext/mpeg2enc/gstmpeg2enc.cc5
2 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index a6090f83..f76333b9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-01-02 Ronald Bultje <rbultje@ronald.bitfreak.net>
+
+ * ext/mpeg2enc/gstmpeg2enc.cc:
+ fix const/nonconst compile issue.
+
2004-01-02 David Schleef <ds@schleef.org>
* sys/xvimage/xvimagesink.c: (gst_xvimagesink_fixate),
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;