mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 06:58:56 +00:00
gst: Set alignment at the correct place of GstAllocationParams
This commit is contained in:
parent
15c712c7c6
commit
7bdcb12b41
4 changed files with 4 additions and 4 deletions
|
@ -765,7 +765,7 @@ gst_video_encoder_propose_allocation_default (GstVideoEncoder * encoder,
|
||||||
if (gst_query_get_n_allocation_pools (query) == 0) {
|
if (gst_query_get_n_allocation_pools (query) == 0) {
|
||||||
GstStructure *structure;
|
GstStructure *structure;
|
||||||
GstAllocator *allocator = NULL;
|
GstAllocator *allocator = NULL;
|
||||||
GstAllocationParams params = { 0, 0, 0, 15, };
|
GstAllocationParams params = { 0, 15, 0, 0 };
|
||||||
|
|
||||||
if (gst_query_get_n_allocation_params (query) > 0)
|
if (gst_query_get_n_allocation_params (query) > 0)
|
||||||
gst_query_parse_nth_allocation_param (query, 0, &allocator, ¶ms);
|
gst_query_parse_nth_allocation_param (query, 0, &allocator, ¶ms);
|
||||||
|
|
|
@ -82,7 +82,7 @@ gst_video_filter_propose_allocation (GstBaseTransform * trans,
|
||||||
if (gst_query_get_n_allocation_pools (query) == 0) {
|
if (gst_query_get_n_allocation_pools (query) == 0) {
|
||||||
GstStructure *structure;
|
GstStructure *structure;
|
||||||
GstAllocator *allocator = NULL;
|
GstAllocator *allocator = NULL;
|
||||||
GstAllocationParams params = { 0, 0, 0, 15, };
|
GstAllocationParams params = { 0, 15, 0, 0, };
|
||||||
|
|
||||||
if (gst_query_get_n_allocation_params (query) > 0)
|
if (gst_query_get_n_allocation_params (query) > 0)
|
||||||
gst_query_parse_nth_allocation_param (query, 0, &allocator, ¶ms);
|
gst_query_parse_nth_allocation_param (query, 0, &allocator, ¶ms);
|
||||||
|
|
|
@ -1079,7 +1079,7 @@ gst_ximagesink_setcaps (GstBaseSink * bsink, GstCaps * caps)
|
||||||
GstBufferPool *newpool, *oldpool;
|
GstBufferPool *newpool, *oldpool;
|
||||||
const GValue *par;
|
const GValue *par;
|
||||||
gint size;
|
gint size;
|
||||||
static GstAllocationParams params = { 0, 0, 0, 15, };
|
static GstAllocationParams params = { 0, 15, 0, 0, };
|
||||||
|
|
||||||
ximagesink = GST_XIMAGESINK (bsink);
|
ximagesink = GST_XIMAGESINK (bsink);
|
||||||
|
|
||||||
|
|
|
@ -1555,7 +1555,7 @@ gst_xvimagesink_setcaps (GstBaseSink * bsink, GstCaps * caps)
|
||||||
gint display_par_n, display_par_d; /* display's PAR */
|
gint display_par_n, display_par_d; /* display's PAR */
|
||||||
guint num, den;
|
guint num, den;
|
||||||
gint size;
|
gint size;
|
||||||
static GstAllocationParams params = { 0, 0, 0, 15, };
|
static GstAllocationParams params = { 0, 15, 0, 0, };
|
||||||
|
|
||||||
xvimagesink = GST_XVIMAGESINK (bsink);
|
xvimagesink = GST_XVIMAGESINK (bsink);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue