summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2004-05-06 09:21:25 +0000
committerWim Taymans <wim.taymans@gmail.com>2004-05-06 09:21:25 +0000
commit2c50be12b43ea60dc1c63747c0bdd25929ec685a (patch)
treeda92d86c4bee0d577b2c4e402dccd59abd8b2cd2
parent9ca3d56e2b5f49cbe283c2e8ce637fd724bad585 (diff)
downloadgst-plugins-bad-2c50be12b43ea60dc1c63747c0bdd25929ec685a.tar.gz
gst-plugins-bad-2c50be12b43ea60dc1c63747c0bdd25929ec685a.tar.bz2
gst-plugins-bad-2c50be12b43ea60dc1c63747c0bdd25929ec685a.zip
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.
-rw-r--r--ChangeLog6
-rw-r--r--ext/mpeg2enc/gstmpeg2enc.cc6
2 files changed, 12 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 41dccb0d..4c79522d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
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):
First process the events before deciding that negotiation
was not performed.
diff --git a/ext/mpeg2enc/gstmpeg2enc.cc b/ext/mpeg2enc/gstmpeg2enc.cc
index f3bc8229..587ba55c 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))) {