ext/mpeg2enc/gstmpeg2enc.cc: Forward events first before deciding that negotiation was not performed.

Original commit message from CVS:
* ext/mpeg2enc/gstmpeg2enc.cc:
Forward events first before deciding that negotiation was
not performed.
This commit is contained in:
Wim Taymans 2004-05-06 09:21:25 +00:00
parent 9ca3d56e2b
commit 2c50be12b4
2 changed files with 12 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2004-05-06 Wim Taymans <wim@fluendo.com>
* ext/mpeg2enc/gstmpeg2enc.cc:
Forward events first before deciding that negotiation was
not performed.
2004-05-06 Wim Taymans <wim@fluendo.com>
* gst/wavenc/gstwavenc.c: (gst_wavenc_chain):

View file

@ -231,6 +231,12 @@ gst_mpeg2enc_loop (GstElement * element)
/* make sure we've had data */
data = gst_pad_pull (enc->sinkpad);
/* forward any events */
if (GST_IS_EVENT (data)) {
gst_pad_event_default (enc->sinkpad, GST_EVENT (data));
return;
}
gst_pad_set_element_private (enc->sinkpad, data);
if (!(caps = GST_PAD_CAPS (enc->sinkpad))) {