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.
This commit is contained in:
Ronald S. Bultje 2005-05-25 16:08:01 +00:00
parent bd8af68852
commit 6e057d28f8
2 changed files with 11 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2005-05-25 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* ext/ogg/gstoggdemux.c: (gst_ogg_pad_submit_packet):
Work with streaming input.
2005-05-25 Wim Taymans <wim@fluendo.com> 2005-05-25 Wim Taymans <wim@fluendo.com>
* gst/ffmpegcolorspace/gstffmpegcolorspace.c: * gst/ffmpegcolorspace/gstffmpegcolorspace.c:

View file

@ -664,6 +664,12 @@ gst_ogg_pad_submit_packet (GstOggPad * pad, ogg_packet * packet)
GST_DEBUG_OBJECT (ogg, GST_DEBUG_OBJECT (ogg,
"%p could not get buffer from peer %08lx, packetno %lld", pad, "%p could not get buffer from peer %08lx, packetno %lld", pad,
pad->serialno, pad->packetno); 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 { } else {
/* initialize our internal decoder with packets */ /* initialize our internal decoder with packets */