mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-03 09:12:19 +00:00
gl: fix array initialization
This commit is contained in:
parent
394128a4db
commit
173b234ed2
2 changed files with 3 additions and 3 deletions
|
@ -251,7 +251,7 @@ gst_gl_mosaic_callback (gpointer stuff)
|
||||||
while (count < mosaic->input_frames->len && count < 6) {
|
while (count < mosaic->input_frames->len && count < 6) {
|
||||||
GstGLMixerFrameData *frame;
|
GstGLMixerFrameData *frame;
|
||||||
/* *INDENT-OFF* */
|
/* *INDENT-OFF* */
|
||||||
gfloat v_vertices = {
|
gfloat v_vertices[] = {
|
||||||
/* front face */
|
/* front face */
|
||||||
1.0f, 1.0f,-1.0f, 1.0f, 0.0f,
|
1.0f, 1.0f,-1.0f, 1.0f, 0.0f,
|
||||||
1.0f,-1.0f,-1.0f, 1.0f, 1.0f,
|
1.0f,-1.0f,-1.0f, 1.0f, 1.0f,
|
||||||
|
|
|
@ -222,7 +222,7 @@ gst_gl_video_mixer_callback (gpointer stuff)
|
||||||
while (count < video_mixer->input_frames->len) {
|
while (count < video_mixer->input_frames->len) {
|
||||||
GstGLMixerFrameData *frame;
|
GstGLMixerFrameData *frame;
|
||||||
/* *INDENT-OFF* */
|
/* *INDENT-OFF* */
|
||||||
gfloat v_vertices = {
|
gfloat v_vertices[] = {
|
||||||
/* front face */
|
/* front face */
|
||||||
-1.0,-1.0,-1.0f, 0.0f, 0.0f,
|
-1.0,-1.0,-1.0f, 0.0f, 0.0f,
|
||||||
1.0,-1.0,-1.0f, 1.0f, 0.0f,
|
1.0,-1.0,-1.0f, 1.0f, 0.0f,
|
||||||
|
@ -240,7 +240,7 @@ gst_gl_video_mixer_callback (gpointer stuff)
|
||||||
|
|
||||||
if (!frame || !frame->texture || in_width <= 0 || in_height <= 0) {
|
if (!frame || !frame->texture || in_width <= 0 || in_height <= 0) {
|
||||||
GST_DEBUG ("skipping texture:%u frame:%p width:%u height %u",
|
GST_DEBUG ("skipping texture:%u frame:%p width:%u height %u",
|
||||||
in_tex, frame, in_width, in_height);
|
frame->texture, frame, in_width, in_height);
|
||||||
count++;
|
count++;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue