[0.11] gst-plugins-bad: kateenc: remove 'flush every packet' hack

Wim Taymans wtay at kemper.freedesktop.org
Fri Feb 10 07:47:17 PST 2012


Module: gst-plugins-bad
Branch: 0.11
Commit: e0b0604119fd7cfb2242605dcff10405ff0a1285
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=e0b0604119fd7cfb2242605dcff10405ff0a1285

Author: Vincent Penquerc'h <vincent.penquerch at collabora.co.uk>
Date:   Sat Jan 28 12:32:46 2012 +0000

kateenc: remove 'flush every packet' hack

This is a bad hack which does not work with Matroska, and is now
obsolete as similar code is not included in oggmux/oggstream.

---

 ext/kate/gstkateenc.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)

diff --git a/ext/kate/gstkateenc.c b/ext/kate/gstkateenc.c
index 8b782c6..1f5afdf 100644
--- a/ext/kate/gstkateenc.c
+++ b/ext/kate/gstkateenc.c
@@ -426,10 +426,6 @@ gst_kate_enc_create_buffer (GstKateEnc * ke, kate_packet * kp,
   GST_BUFFER_TIMESTAMP (buffer) = timestamp;
   GST_BUFFER_DURATION (buffer) = duration;
 
-  /* data packets are each on their own page */
-//  if (!header)
-//    GST_BUFFER_FLAG_SET (buffer, GST_BUFFER_FLAG_DISCONT);
-
   return buffer;
 }
 
@@ -445,9 +441,6 @@ gst_kate_enc_push_buffer (GstKateEnc * ke, GstBuffer * buffer)
         GST_BUFFER_TIMESTAMP (buffer) + GST_BUFFER_DURATION (buffer);
   }
 
-  /* Hack to flush each packet on its own page - taken off the CMML encoder element */
-  GST_BUFFER_DURATION (buffer) = G_MAXINT64;
-
   flow = gst_pad_push (ke->srcpad, buffer);
   if (G_UNLIKELY (flow != GST_FLOW_OK)) {
     GST_WARNING_OBJECT (ke->srcpad, "push flow: %s", gst_flow_get_name (flow));



More information about the gstreamer-commits mailing list