mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 10:41:04 +00:00
gcc-2.95 nitpicking - thanks Scott Wheeler
Original commit message from CVS: gcc-2.95 nitpicking - thanks Scott Wheeler
This commit is contained in:
parent
00e390d267
commit
399c38e398
1 changed files with 3 additions and 2 deletions
|
@ -372,7 +372,7 @@ gst_ogg_pad_remove (GstOggDemux *ogg, GstOggPad *pad)
|
|||
static void
|
||||
gst_ogg_demux_push (GstOggDemux *ogg, ogg_page* page)
|
||||
{
|
||||
GSList *walk;;
|
||||
GSList *walk;
|
||||
GstOggPad *cur;
|
||||
|
||||
/* find the stream */
|
||||
|
@ -423,6 +423,7 @@ gst_ogg_pad_push (GstOggDemux *ogg, GstOggPad *pad)
|
|||
{
|
||||
ogg_packet packet;
|
||||
int ret;
|
||||
GstBuffer *buf;
|
||||
|
||||
while (TRUE) {
|
||||
ret = ogg_stream_packetout (&pad->stream, &packet);
|
||||
|
@ -449,7 +450,7 @@ gst_ogg_pad_push (GstOggDemux *ogg, GstOggPad *pad)
|
|||
gst_element_add_pad (GST_ELEMENT (ogg), pad->pad);
|
||||
}
|
||||
/* optimization: use a bufferpool containing the ogg packet */
|
||||
GstBuffer *buf = gst_buffer_new_and_alloc (packet.bytes);
|
||||
buf = gst_buffer_new_and_alloc (packet.bytes);
|
||||
memcpy (buf->data, packet.packet, packet.bytes);
|
||||
GST_BUFFER_OFFSET (buf) = pad->offset;
|
||||
pad->offset = GST_BUFFER_OFFSET_END (buf) = packet.granulepos;
|
||||
|
|
Loading…
Reference in a new issue