From 7660fcbd30c20992183a2410e7d7f1a3b1096f79 Mon Sep 17 00:00:00 2001 From: Julien Isorce Date: Mon, 26 Apr 2010 23:48:15 +0200 Subject: [PATCH] [437/906] glfilterreflectedscreen: remove unused code (copied/pasted from glfilterglass) --- gst/gl/gstglfilterreflectedscreen.c | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/gst/gl/gstglfilterreflectedscreen.c b/gst/gl/gstglfilterreflectedscreen.c index 360b6c16dc..2525088561 100644 --- a/gst/gl/gstglfilterreflectedscreen.c +++ b/gst/gl/gstglfilterreflectedscreen.c @@ -1,6 +1,6 @@ /* * GStreamer - * Copyright (C) 2008 Pierre Pouzol + * Copyright (C) 2010 Pierre Pouzol * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -234,25 +234,10 @@ static void gst_gl_filter_reflected_screen_callback (gint width, gint height, guint texture, gpointer stuff) { - static gint64 start_time = 0; - GstGLFilter *filter = GST_GL_FILTER (stuff); GstGLFilterReflectedScreen *reflected_screen_filter = GST_GL_FILTER_REFLECTED_SCREEN (stuff); - if (start_time == 0) - start_time = get_time (); - else { - gint64 time_left = - (reflected_screen_filter->timestamp / 1000) - (get_time () - - start_time); - time_left -= 1000000 / 25; - if (time_left > 2000) { - GST_LOG ("escape"); - return; - } - } - glClear (GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT); //load identity befor tracing