mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
[682/906] overlay: fix video-top property
This commit is contained in:
parent
39e5b7c97f
commit
25955212b8
1 changed files with 3 additions and 4 deletions
|
@ -587,10 +587,9 @@ gst_gl_overlay_callback (gint width, gint height, guint texture, gpointer stuff)
|
|||
1000.0f);
|
||||
gl->Enable (GL_DEPTH_TEST);
|
||||
gluLookAt (0.0, 0.0, 0.01, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0);
|
||||
if (overlay->video_top) {
|
||||
gst_gl_overlay_load_texture (overlay, overlay->pbuftexture, 0);
|
||||
if (overlay->pbuftexture == 0)
|
||||
return;
|
||||
if (!overlay->video_top) {
|
||||
if (overlay->pbuftexture != 0)
|
||||
gst_gl_overlay_load_texture (overlay, overlay->pbuftexture, 0);
|
||||
// if (overlay->stretch) {
|
||||
// width = (gfloat) overlay->width;
|
||||
// height = (gfloat) overlay->height;
|
||||
|
|
Loading…
Reference in a new issue