mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-17 22:06:41 +00:00
oggmux: fix compilation
This commit is contained in:
parent
0213407fbc
commit
5f359600ce
1 changed files with 9 additions and 7 deletions
|
@ -1075,12 +1075,8 @@ gst_ogg_mux_set_header_on_caps (GstCaps * caps, GList * buffers)
|
|||
}
|
||||
|
||||
static void
|
||||
create_header_packet (ogg_packet * packet, GstBuffer * buf, GstOggPadData * pad)
|
||||
create_header_packet (ogg_packet * packet, GstOggPadData * pad)
|
||||
{
|
||||
gsize size;
|
||||
|
||||
packet->packet = gst_buffer_map (buf, &size, NULL, GST_MAP_READ);
|
||||
packet->bytes = size;
|
||||
packet->granulepos = 0;
|
||||
/* mark BOS and packet number */
|
||||
packet->b_o_s = (pad->packetno == 0);
|
||||
|
@ -1170,7 +1166,10 @@ gst_ogg_mux_send_headers (GstOggMux * mux)
|
|||
}
|
||||
|
||||
/* create a packet from the buffer */
|
||||
create_header_packet (&packet, buf, pad);
|
||||
packet.packet = gst_buffer_map (buf, &size, NULL, GST_MAP_READ);
|
||||
packet.bytes = size;
|
||||
|
||||
create_header_packet (&packet, pad);
|
||||
|
||||
/* swap the packet in */
|
||||
ogg_stream_packetin (&pad->map.stream, &packet);
|
||||
|
@ -1228,7 +1227,10 @@ gst_ogg_mux_send_headers (GstOggMux * mux)
|
|||
hwalk = hwalk->next;
|
||||
|
||||
/* create a packet from the buffer */
|
||||
create_header_packet (&packet, buf, pad);
|
||||
packet.packet = gst_buffer_map (buf, &size, NULL, GST_MAP_READ);
|
||||
packet.bytes = size;
|
||||
|
||||
create_header_packet (&packet, pad);
|
||||
|
||||
/* swap the packet in */
|
||||
ogg_stream_packetin (&pad->map.stream, &packet);
|
||||
|
|
Loading…
Reference in a new issue