mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-03 05:59:10 +00:00
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.
This commit is contained in:
parent
181d0cb874
commit
9929ccd9d1
2 changed files with 8 additions and 2 deletions
|
@ -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>
|
2004-01-02 David Schleef <ds@schleef.org>
|
||||||
|
|
||||||
* sys/xvimage/xvimagesink.c: (gst_xvimagesink_fixate),
|
* sys/xvimage/xvimagesink.c: (gst_xvimagesink_fixate),
|
||||||
|
|
|
@ -229,6 +229,7 @@ gst_mpeg2enc_loop (GstElement *element)
|
||||||
|
|
||||||
if (!enc->encoder) {
|
if (!enc->encoder) {
|
||||||
const GstCaps *caps;
|
const GstCaps *caps;
|
||||||
|
GstCaps *othercaps;
|
||||||
GstData *data;
|
GstData *data;
|
||||||
|
|
||||||
/* make sure we've had data */
|
/* make sure we've had data */
|
||||||
|
@ -246,8 +247,8 @@ gst_mpeg2enc_loop (GstElement *element)
|
||||||
caps, enc->srcpad);
|
caps, enc->srcpad);
|
||||||
|
|
||||||
/* and set caps on other side */
|
/* and set caps on other side */
|
||||||
caps = enc->encoder->getFormat ();
|
othercaps = enc->encoder->getFormat ();
|
||||||
if (gst_pad_set_explicit_caps (enc->srcpad, caps) <= 0) {
|
if (gst_pad_set_explicit_caps (enc->srcpad, othercaps) <= 0) {
|
||||||
gst_element_error (element,
|
gst_element_error (element,
|
||||||
"Failed to set up encoder properly");
|
"Failed to set up encoder properly");
|
||||||
delete enc->encoder;
|
delete enc->encoder;
|
||||||
|
|
Loading…
Reference in a new issue