From 6e057d28f8ef2bba358b377213fe729edd230de9 Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Wed, 25 May 2005 16:08:01 +0000 Subject: [PATCH] ext/ogg/gstoggdemux.c: Work with streaming input. Original commit message from CVS: * ext/ogg/gstoggdemux.c: (gst_ogg_pad_submit_packet): Work with streaming input. --- ChangeLog | 5 +++++ ext/ogg/gstoggdemux.c | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index 8e85eec5f6..d0af3d2fde 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-05-25 Ronald S. Bultje + + * ext/ogg/gstoggdemux.c: (gst_ogg_pad_submit_packet): + Work with streaming input. + 2005-05-25 Wim Taymans * gst/ffmpegcolorspace/gstffmpegcolorspace.c: diff --git a/ext/ogg/gstoggdemux.c b/ext/ogg/gstoggdemux.c index 281fda7651..37aa2f7173 100644 --- a/ext/ogg/gstoggdemux.c +++ b/ext/ogg/gstoggdemux.c @@ -664,6 +664,12 @@ gst_ogg_pad_submit_packet (GstOggPad * pad, ogg_packet * packet) GST_DEBUG_OBJECT (ogg, "%p could not get buffer from peer %08lx, packetno %lld", pad, pad->serialno, pad->packetno); + buf = gst_buffer_new_and_alloc (packet->bytes); + memcpy (buf->data, packet->packet, packet->bytes); + pad->offset = packet->granulepos; + GST_BUFFER_OFFSET (buf) = -1; + GST_BUFFER_OFFSET_END (buf) = packet->granulepos; + pad->headers = g_list_append (pad->headers, buf); } } else { /* initialize our internal decoder with packets */