mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
oggdemux: do not try to write empty header buffers
Those are valid, and the EOS skeleton packet is actually empty.
This commit is contained in:
parent
77230f0106
commit
67f6f64d88
1 changed files with 2 additions and 1 deletions
|
@ -2290,7 +2290,8 @@ gst_ogg_demux_set_header_on_caps (GstOggDemux * ogg, GstCaps * caps,
|
|||
ogg_packet *op = headers->data;
|
||||
g_assert (op);
|
||||
buffer = gst_buffer_new_and_alloc (op->bytes);
|
||||
gst_buffer_fill (buffer, 0, op->packet, op->bytes);
|
||||
if (op->bytes)
|
||||
gst_buffer_fill (buffer, 0, op->packet, op->bytes);
|
||||
GST_BUFFER_FLAG_SET (buffer, GST_BUFFER_FLAG_IN_CAPS);
|
||||
g_value_init (&value, GST_TYPE_BUFFER);
|
||||
gst_value_take_buffer (&value, buffer);
|
||||
|
|
Loading…
Reference in a new issue