diff options
author | Gernot Ziegler <gz@lysator.liu.se> | 2003-10-27 22:07:15 +0000 |
---|---|---|
committer | Gernot Ziegler <gz@lysator.liu.se> | 2003-10-27 22:07:15 +0000 |
commit | 727677396f615daed5202fe304f119a2d30cbd0b (patch) | |
tree | 2137d60578410811dcf34bc7f06b1fced99a3986 /sys/glsink/gstglxwindow.c | |
parent | 537084d264c4bb5fc9d02504d7e79961fd8e83c7 (diff) | |
download | gst-plugins-bad-727677396f615daed5202fe304f119a2d30cbd0b.tar.gz gst-plugins-bad-727677396f615daed5202fe304f119a2d30cbd0b.tar.bz2 gst-plugins-bad-727677396f615daed5202fe304f119a2d30cbd0b.zip |
improvements to glsink demo mode and autodetection
Original commit message from CVS:
improvements to glsink demo mode and autodetection
Diffstat (limited to 'sys/glsink/gstglxwindow.c')
-rw-r--r-- | sys/glsink/gstglxwindow.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/sys/glsink/gstglxwindow.c b/sys/glsink/gstglxwindow.c index 5f723160..f442cf06 100644 --- a/sys/glsink/gstglxwindow.c +++ b/sys/glsink/gstglxwindow.c @@ -147,14 +147,14 @@ gst_glxwindow_new (GstElement *sink) if (vi == NULL) { vi = glXChooseVisual(new->dpy, new->screen, attrListSgl); - g_warning("Only Singlebuffered Visual!\n"); + GST_DEBUG(0,"Only Singlebuffered Visual!\n"); } else { - g_warning("Got Doublebuffered Visual!\n"); + GST_DEBUG(0,"Got Doublebuffered Visual!\n"); } glXQueryVersion(new->dpy, &glxMajorVersion, &glxMinorVersion); - g_warning("glX-Version %d.%d\n", glxMajorVersion, glxMinorVersion); + GST_DEBUG(0,"glX-Version %d.%d\n", glxMajorVersion, glxMinorVersion); /* create a GLX context */ new->ctx = glXCreateContext(new->dpy, vi, 0, GL_TRUE); @@ -172,7 +172,8 @@ gst_glxwindow_new (GstElement *sink) new->rotX = 0; new->rotY = 0; - new->zoom = 2; + new->zoom = 1; + new->zoomdir = 0.01; { /* create a window in window mode*/ @@ -200,11 +201,11 @@ gst_glxwindow_new (GstElement *sink) &new->width, &new->height, &borderDummy, &new->depth); printf("Depth %d\n", new->depth); if (glXIsDirect(new->dpy, new->ctx)) - g_warning("Congrats, you have Direct Rendering!\n"); + GST_DEBUG (GST_CAT_PLUGIN_INFO, "Congrats, you have Direct Rendering!\n"); else - g_warning("Sorry, no Direct Rendering possible!\n"); + GST_DEBUG (GST_CAT_PLUGIN_INFO, "Sorry, no Direct Rendering possible!\n"); - g_warning("Initializing OpenGL parameters"); + GST_DEBUG(GST_CAT_PLUGIN_INFO, "Initializing OpenGL parameters\n"); /* initialize OpenGL drawing */ glEnable(GL_DEPTH_TEST); //glShadeModel(GL_SMOOTH); |