summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/gl_common/evas_gl_texture.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-03-02 15:29:54 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-03-02 15:31:07 +0900
commit9f535a3f3c3dfae6abff50a4472b6422cfaa7b2e (patch)
tree889893c62e1c4f2d6a06641174f66e8a15a757fa /src/modules/evas/engines/gl_common/evas_gl_texture.c
parent5d2a167958da5712ba1496e2e7bde33c302282f7 (diff)
emotion - fix empty video data frame update when using vdpau accel
fixes a segfault when using vdpau+gst and where the first frame seems to be empty/zero. @fix
Diffstat (limited to '')
-rw-r--r--src/modules/evas/engines/gl_common/evas_gl_texture.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/evas/engines/gl_common/evas_gl_texture.c b/src/modules/evas/engines/gl_common/evas_gl_texture.c
index d8259eb9d5..f4d747e331 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_texture.c
+++ b/src/modules/evas/engines/gl_common/evas_gl_texture.c
@@ -1954,7 +1954,7 @@ evas_gl_common_texture_yuv_update(Evas_GL_Texture *tex, DATA8 **rows, unsigned i
1954 tex->ptv2 = ptv; 1954 tex->ptv2 = ptv;
1955 1955
1956 // FIXME: works on lowest size 4 pixel high buffers. must also be multiple of 2 1956 // FIXME: works on lowest size 4 pixel high buffers. must also be multiple of 2
1957 if (tex->gc->shared->info.unpack_row_length) 1957 if ((tex->gc->shared->info.unpack_row_length) && (rows[0] && rows[h]))
1958 { 1958 {
1959 glPixelStorei(GL_UNPACK_ROW_LENGTH, rows[1] - rows[0]); 1959 glPixelStorei(GL_UNPACK_ROW_LENGTH, rows[1] - rows[0]);
1960 glPixelStorei(GL_UNPACK_ALIGNMENT, 1); 1960 glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
@@ -1973,7 +1973,7 @@ evas_gl_common_texture_yuv_update(Evas_GL_Texture *tex, DATA8 **rows, unsigned i
1973 return; 1973 return;
1974 _tex_sub_2d(tex->gc, 0, 0, w / 2, h / 2, tex->ptv->format, tex->ptv->dataformat, rows[h + (h / 2)]); 1974 _tex_sub_2d(tex->gc, 0, 0, w / 2, h / 2, tex->ptv->format, tex->ptv->dataformat, rows[h + (h / 2)]);
1975 } 1975 }
1976 else 1976 else if (rows[0] && rows[h])
1977 { 1977 {
1978 unsigned int y; 1978 unsigned int y;
1979 1979