mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
gst: Set alignment at the correct place of GstAllocationParams
This commit is contained in:
parent
6ca8ceb130
commit
6f74b2afb7
4 changed files with 5 additions and 6 deletions
|
@ -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)
|
||||||
|
|
|
@ -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), ¶ms);
|
gst_buffer_get_size (buffer), ¶ms);
|
||||||
|
|
|
@ -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, ¶ms);
|
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, ¶ms);
|
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
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue