From 2c50be12b43ea60dc1c63747c0bdd25929ec685a Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 6 May 2004 09:21:25 +0000 Subject: [PATCH] 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. --- ChangeLog | 6 ++++++ ext/mpeg2enc/gstmpeg2enc.cc | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/ChangeLog b/ChangeLog index 41dccb0d2e..4c79522da4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-05-06 Wim Taymans + + * ext/mpeg2enc/gstmpeg2enc.cc: + Forward events first before deciding that negotiation was + not performed. + 2004-05-06 Wim Taymans * gst/wavenc/gstwavenc.c: (gst_wavenc_chain): diff --git a/ext/mpeg2enc/gstmpeg2enc.cc b/ext/mpeg2enc/gstmpeg2enc.cc index f3bc822907..587ba55c2a 100644 --- a/ext/mpeg2enc/gstmpeg2enc.cc +++ b/ext/mpeg2enc/gstmpeg2enc.cc @@ -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))) {