diff options
author | Vincent Penquerc'h <vincent.penquerch@collabora.co.uk> | 2012-01-28 12:32:46 +0000 |
---|---|---|
committer | Vincent Penquerc'h <vincent.penquerch@collabora.co.uk> | 2012-01-28 12:34:36 +0000 |
commit | e0b0604119fd7cfb2242605dcff10405ff0a1285 (patch) | |
tree | 4ff618db2e2ff896d7e2e4fb8c4761930e41f233 /ext/kate | |
parent | 8147669971151c33d12c645a242406e518291ff0 (diff) | |
download | gstreamer-plugins-bad-e0b0604119fd7cfb2242605dcff10405ff0a1285.tar.gz |
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.
Diffstat (limited to 'ext/kate')
-rw-r--r-- | 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 8b782c6a1..1f5afdfd0 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)); |