gst: Set alignment at the correct place of GstAllocationParams

This commit is contained in:
Sebastian Dröge 2012-08-08 17:39:07 +02:00
parent 6ca8ceb130
commit 6f74b2afb7
4 changed files with 5 additions and 6 deletions

View file

@ -179,7 +179,7 @@ ensure_memory (GstJpegEnc * jpegenc)
GstMapInfo map; GstMapInfo map;
gsize old_size, desired_size, new_size; gsize old_size, desired_size, new_size;
guint8 *new_data; guint8 *new_data;
static GstAllocationParams params = { 0, 0, 0, 3, }; static GstAllocationParams params = { 0, 3, 0, 0, };
old_size = jpegenc->output_map.size; old_size = jpegenc->output_map.size;
if (old_size == 0) if (old_size == 0)

View file

@ -3147,7 +3147,7 @@ gst_matroska_demux_align_buffer (GstMatroskaDemux * demux,
if (((guintptr) map.data) & (alignment - 1)) { if (((guintptr) map.data) & (alignment - 1)) {
GstBuffer *new_buffer; GstBuffer *new_buffer;
GstAllocationParams params = { 0, 0, 0, alignment - 1, }; GstAllocationParams params = { 0, alignment - 1, 0, 0, };
new_buffer = gst_buffer_new_allocate (NULL, new_buffer = gst_buffer_new_allocate (NULL,
gst_buffer_get_size (buffer), &params); gst_buffer_get_size (buffer), &params);

View file

@ -395,7 +395,6 @@ gst_multipart_mux_collected (GstCollectPads * pads, GstMultipartMux * mux)
GstStructure *structure = NULL; GstStructure *structure = NULL;
GstCaps *caps; GstCaps *caps;
const gchar *mime; const gchar *mime;
static GstAllocationParams params = { 0, 0, 0, 1, };
GST_DEBUG_OBJECT (mux, "all pads are collected"); GST_DEBUG_OBJECT (mux, "all pads are collected");
@ -462,7 +461,7 @@ gst_multipart_mux_collected (GstCollectPads * pads, GstMultipartMux * mux)
mux->boundary, mime, gst_buffer_get_size (best->buffer)); mux->boundary, mime, gst_buffer_get_size (best->buffer));
headerlen = strlen (header); headerlen = strlen (header);
headerbuf = gst_buffer_new_allocate (NULL, headerlen, &params); headerbuf = gst_buffer_new_allocate (NULL, headerlen, NULL);
gst_buffer_fill (headerbuf, 0, header, headerlen); gst_buffer_fill (headerbuf, 0, header, headerlen);
g_free (header); g_free (header);
@ -502,7 +501,7 @@ gst_multipart_mux_collected (GstCollectPads * pads, GstMultipartMux * mux)
* don't need to unref headerbuf here. */ * don't need to unref headerbuf here. */
goto beach; goto beach;
footerbuf = gst_buffer_new_allocate (NULL, 2, &params); footerbuf = gst_buffer_new_allocate (NULL, 2, NULL);
gst_buffer_fill (footerbuf, 0, "\r\n", 2); gst_buffer_fill (footerbuf, 0, "\r\n", 2);
/* the footer has the same timestamp as the data buffer and has a /* the footer has the same timestamp as the data buffer and has a

View file

@ -818,7 +818,7 @@ gst_videomixer2_blend_buffers (GstVideoMixer2 * mix,
guint outsize; guint outsize;
BlendFunction composite; BlendFunction composite;
GstVideoFrame outframe; GstVideoFrame outframe;
static GstAllocationParams params = { 0, 0, 0, 15, }; static GstAllocationParams params = { 0, 15, 0, 0, };
outsize = GST_VIDEO_INFO_SIZE (&mix->info); outsize = GST_VIDEO_INFO_SIZE (&mix->info);