mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
examples/gl: update for signal signature change
This commit is contained in:
parent
2043def155
commit
62507bb089
4 changed files with 7 additions and 7 deletions
|
@ -65,7 +65,7 @@ static gboolean bus_call (GstBus *bus, GstMessage *msg, gpointer data)
|
||||||
}
|
}
|
||||||
|
|
||||||
//client reshape callback
|
//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);
|
glViewport(0, 0, width, height);
|
||||||
glMatrixMode(GL_PROJECTION);
|
glMatrixMode(GL_PROJECTION);
|
||||||
|
@ -77,7 +77,7 @@ static gboolean reshapeCallback (void *gl_sink, GLuint width, GLuint height, gpo
|
||||||
}
|
}
|
||||||
|
|
||||||
//client draw callback
|
//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 xrot = 0;
|
||||||
static GLfloat yrot = 0;
|
static GLfloat yrot = 0;
|
||||||
|
|
|
@ -87,7 +87,7 @@ static void identityCallback (GstElement *src, GstBuffer *buffer, GstElement* t
|
||||||
|
|
||||||
|
|
||||||
//client reshape callback
|
//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);
|
glViewport(0, 0, width, height);
|
||||||
glMatrixMode(GL_PROJECTION);
|
glMatrixMode(GL_PROJECTION);
|
||||||
|
@ -100,7 +100,7 @@ static gboolean reshapeCallback (void * gl_sink, GLuint width, GLuint height, gp
|
||||||
|
|
||||||
|
|
||||||
//client draw callback
|
//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 xrot = 0;
|
||||||
static GLfloat yrot = 0;
|
static GLfloat yrot = 0;
|
||||||
|
|
|
@ -89,7 +89,7 @@ static GstPadProbeReturn textoverlay_sink_pad_probe_cb (GstPad *pad, GstPadProbe
|
||||||
|
|
||||||
|
|
||||||
//client reshape callback
|
//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);
|
glViewport(0, 0, width, height);
|
||||||
glMatrixMode(GL_PROJECTION);
|
glMatrixMode(GL_PROJECTION);
|
||||||
|
@ -102,7 +102,7 @@ static gboolean reshapeCallback (void *gl_sink, GLuint width, GLuint height)
|
||||||
|
|
||||||
|
|
||||||
//client draw callback
|
//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 xrot = 0;
|
||||||
static GLfloat yrot = 0;
|
static GLfloat yrot = 0;
|
||||||
|
|
|
@ -66,7 +66,7 @@ static gboolean bus_call (GstBus *bus, GstMessage *msg, gpointer data)
|
||||||
}
|
}
|
||||||
|
|
||||||
//client draw callback
|
//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 xrot = 0;
|
||||||
static GLfloat yrot = 0;
|
static GLfloat yrot = 0;
|
||||||
|
|
Loading…
Reference in a new issue