mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
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.
This commit is contained in:
parent
8147669971
commit
e0b0604119
1 changed files with 0 additions and 7 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue