summaryrefslogtreecommitdiffstats
path: root/gst/rtp/gstrtpmp4vpay.c
diff options
context:
space:
mode:
authorYotam <sh.yotam@gmail.com>2008-11-13 14:04:40 +0000
committerWim Taymans <wim.taymans@gmail.com>2008-11-13 14:04:40 +0000
commitbfb73112af20309fabbb56c2c9cd536e7a276662 (patch)
tree1d13be399d6f77de139dc05d3a29c8379885e9bc /gst/rtp/gstrtpmp4vpay.c
parent5bb87818b2a93491e26c32187df581a5a747d631 (diff)
gst/rtp/gstrtpmp4vpay.c: Flush the remaining frames on EOS. Fixes #560641.
Original commit message from CVS: Patch by: Yotam <sh dot yotam at gmail dot com> * gst/rtp/gstrtpmp4vpay.c: (gst_rtp_mp4v_pay_event): Flush the remaining frames on EOS. Fixes #560641.
Diffstat (limited to 'gst/rtp/gstrtpmp4vpay.c')
-rw-r--r--gst/rtp/gstrtpmp4vpay.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gst/rtp/gstrtpmp4vpay.c b/gst/rtp/gstrtpmp4vpay.c
index 61f4a575..e4add1e7 100644
--- a/gst/rtp/gstrtpmp4vpay.c
+++ b/gst/rtp/gstrtpmp4vpay.c
@@ -1,5 +1,5 @@
/* GStreamer
- * Copyright (C) <2005> Wim Taymans <wim@fluendo.com>
+ * Copyright (C) <2005> Wim Taymans <wim.taymans@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -35,7 +35,7 @@ static const GstElementDetails gst_rtp_mp4vpay_details =
GST_ELEMENT_DETAILS ("RTP MPEG-4 Video packet payloader",
"Codec/Payloader/Network",
"Payload MPEG-4 video as RTP packets (RFC 3016)",
- "Wim Taymans <wim@fluendo.com>");
+ "Wim Taymans <wim.taymans@gmail.com>");
static GstStaticPadTemplate gst_rtp_mp4v_pay_sink_template =
GST_STATIC_PAD_TEMPLATE ("sink",
@@ -495,6 +495,9 @@ gst_rtp_mp4v_pay_event (GstPad * pad, GstEvent * event)
switch (GST_EVENT_TYPE (event)) {
case GST_EVENT_NEWSEGMENT:
+ case GST_EVENT_EOS:
+ /* This flush call makes sure that the last buffer is always pushed
+ * to the base payloader */
gst_rtp_mp4v_pay_flush (rtpmp4vpay);
break;
case GST_EVENT_FLUSH_STOP: