From 62507bb0892f5e691cadf705d1d390e7493e9757 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Sun, 28 Sep 2014 20:37:04 +1000 Subject: [PATCH] examples/gl: update for signal signature change --- tests/examples/gl/generic/cube/main.cpp | 4 ++-- tests/examples/gl/generic/cubeyuv/main.cpp | 4 ++-- tests/examples/gl/generic/doublecube/main.cpp | 4 ++-- tests/examples/gl/generic/recordgraphic/main.cpp | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/examples/gl/generic/cube/main.cpp b/tests/examples/gl/generic/cube/main.cpp index 23c81ec365..b5ded63d92 100644 --- a/tests/examples/gl/generic/cube/main.cpp +++ b/tests/examples/gl/generic/cube/main.cpp @@ -65,7 +65,7 @@ static gboolean bus_call (GstBus *bus, GstMessage *msg, gpointer data) } //client reshape callback -static gboolean reshapeCallback (void *gl_sink, GLuint width, GLuint height, gpointer data) +static gboolean reshapeCallback (void *gl_sink, void *context, GLuint width, GLuint height, gpointer data) { glViewport(0, 0, width, height); glMatrixMode(GL_PROJECTION); @@ -77,7 +77,7 @@ static gboolean reshapeCallback (void *gl_sink, GLuint width, GLuint height, gpo } //client draw callback -static gboolean drawCallback (void * gl_sink, GLuint texture, GLuint width, GLuint height, gpointer data) +static gboolean drawCallback (void * gl_sink, void *context, GLuint texture, GLuint width, GLuint height, gpointer data) { static GLfloat xrot = 0; static GLfloat yrot = 0; diff --git a/tests/examples/gl/generic/cubeyuv/main.cpp b/tests/examples/gl/generic/cubeyuv/main.cpp index 0d585a7214..deb75ed6d3 100644 --- a/tests/examples/gl/generic/cubeyuv/main.cpp +++ b/tests/examples/gl/generic/cubeyuv/main.cpp @@ -87,7 +87,7 @@ static void identityCallback (GstElement *src, GstBuffer *buffer, GstElement* t //client reshape callback -static gboolean reshapeCallback (void * gl_sink, GLuint width, GLuint height, gpointer data) +static gboolean reshapeCallback (void * gl_sink, void *context, GLuint width, GLuint height, gpointer data) { glViewport(0, 0, width, height); glMatrixMode(GL_PROJECTION); @@ -100,7 +100,7 @@ static gboolean reshapeCallback (void * gl_sink, GLuint width, GLuint height, gp //client draw callback -static gboolean drawCallback (void * gl_sink, GLuint texture, GLuint width, GLuint height, gpointer data) +static gboolean drawCallback (void * gl_sink, void *context, GLuint texture, GLuint width, GLuint height, gpointer data) { static GLfloat xrot = 0; static GLfloat yrot = 0; diff --git a/tests/examples/gl/generic/doublecube/main.cpp b/tests/examples/gl/generic/doublecube/main.cpp index 4e0a421ffe..82520383be 100644 --- a/tests/examples/gl/generic/doublecube/main.cpp +++ b/tests/examples/gl/generic/doublecube/main.cpp @@ -89,7 +89,7 @@ static GstPadProbeReturn textoverlay_sink_pad_probe_cb (GstPad *pad, GstPadProbe //client reshape callback -static gboolean reshapeCallback (void *gl_sink, GLuint width, GLuint height) +static gboolean reshapeCallback (void *gl_sink, void *context, GLuint width, GLuint height) { glViewport(0, 0, width, height); glMatrixMode(GL_PROJECTION); @@ -102,7 +102,7 @@ static gboolean reshapeCallback (void *gl_sink, GLuint width, GLuint height) //client draw callback -static gboolean drawCallback (void * gl_sink, GLuint texture, GLuint width, GLuint height) +static gboolean drawCallback (void * gl_sink, void *context, GLuint texture, GLuint width, GLuint height) { static GLfloat xrot = 0; static GLfloat yrot = 0; diff --git a/tests/examples/gl/generic/recordgraphic/main.cpp b/tests/examples/gl/generic/recordgraphic/main.cpp index d457a9c257..d99d0d8e6b 100644 --- a/tests/examples/gl/generic/recordgraphic/main.cpp +++ b/tests/examples/gl/generic/recordgraphic/main.cpp @@ -66,7 +66,7 @@ static gboolean bus_call (GstBus *bus, GstMessage *msg, gpointer data) } //client draw callback -static gboolean drawCallback (void *filter, GLuint width, GLuint height, GLuint texture, gpointer data) +static gboolean drawCallback (void *filter, void *context, GLuint texture, GLuint width, GLuint height, gpointer data) { static GLfloat xrot = 0; static GLfloat yrot = 0;