summaryrefslogtreecommitdiffstats
path: root/ext/mpeg2enc
diff options
context:
space:
mode:
authorRonald S. Bultje <rbultje@ronald.bitfreak.net>2004-01-02 10:51:57 +0000
committerRonald S. Bultje <rbultje@ronald.bitfreak.net>2004-01-02 10:51:57 +0000
commit9929ccd9d1782b85b86919b6fdf9e112444d9a2f (patch)
tree39b0706039354bd613c6fd638380a03f72d93f87 /ext/mpeg2enc
parent181d0cb874993ff56f2b5c1196b7d13caade3311 (diff)
downloadgst-plugins-bad-9929ccd9d1782b85b86919b6fdf9e112444d9a2f.tar.gz
gst-plugins-bad-9929ccd9d1782b85b86919b6fdf9e112444d9a2f.tar.bz2
gst-plugins-bad-9929ccd9d1782b85b86919b6fdf9e112444d9a2f.zip
ext/mpeg2enc/gstmpeg2enc.cc: fix const/nonconst compile issue.
Original commit message from CVS: 2004-01-02 Ronald Bultje <rbultje@ronald.bitfreak.net> * ext/mpeg2enc/gstmpeg2enc.cc: fix const/nonconst compile issue.
Diffstat (limited to 'ext/mpeg2enc')
-rw-r--r--ext/mpeg2enc/gstmpeg2enc.cc5
1 files changed, 3 insertions, 2 deletions
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;