glwindow: Constify string parameters to the send_*_event() functions

This commit is contained in:
Sebastian Dröge 2014-07-24 12:23:03 +02:00 committed by Tim-Philipp Müller
parent 884be3de11
commit 307db954fd
2 changed files with 6 additions and 6 deletions

View file

@ -771,15 +771,15 @@ gst_gl_dummy_window_new (void)
}
void
gst_gl_window_send_key_event (GstGLWindow * window, char *event_type,
char *key_str)
gst_gl_window_send_key_event (GstGLWindow * window, const char *event_type,
const char *key_str)
{
g_signal_emit (window, gst_gl_window_signals[EVENT_KEY_SIGNAL], 0,
event_type, key_str);
}
void
gst_gl_window_send_mouse_event (GstGLWindow * window, char *event_type,
gst_gl_window_send_mouse_event (GstGLWindow * window, const char *event_type,
int button, double posx, double posy)
{
g_signal_emit (window, gst_gl_window_signals[EVENT_MOUSE_SIGNAL], 0,

View file

@ -153,9 +153,9 @@ GstGLContext * gst_gl_window_get_context (GstGLWindow *window);
gboolean gst_gl_window_is_running (GstGLWindow *window);
void gst_gl_window_send_key_event(GstGLWindow * window, char * event_type,
char * key_str);
void gst_gl_window_send_mouse_event(GstGLWindow * window, char *
void gst_gl_window_send_key_event(GstGLWindow * window, const char * event_type,
const char * key_str);
void gst_gl_window_send_mouse_event(GstGLWindow * window, const char *
event_type, int button, double posx, double posy);
GST_DEBUG_CATEGORY_EXTERN (gst_gl_window_debug);