summaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/mpeg2enc/gstmpeg2enc.cc6
1 files changed, 6 insertions, 0 deletions
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))) {