diff options
Diffstat (limited to 'ext/mpeg2enc')
-rw-r--r-- | ext/mpeg2enc/gstmpeg2enc.cc | 5 |
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; |