gst_gl_display_glutCreateWindow (GstGLDisplay *display)
{
gint glutWinId = 0;
- GList *keys = NULL;
gchar buffer[5];
GLenum err = 0;
//insert glut context to the map
display->glutWinId = glutWinId;
- g_hash_table_insert (gst_gl_display_map, (gpointer)(guint64)glutWinId, display);
+ g_hash_table_insert (gst_gl_display_map, GINT_TO_POINTER (glutWinId), display);
//check glut id validity
g_assert (glutGetWindow() == glutWinId);
}
}
- g_hash_table_remove (gst_gl_display_map, (gpointer)(guint64)display->glutWinId);
+ g_hash_table_remove (gst_gl_display_map, GINT_TO_POINTER (display->glutWinId));
g_print ("glut window destroyed: %d\n", display->glutWinId);
//if the map is empty, leaveMainloop and join the thread
case GST_GL_DISPLAY_ACTION_VIDEO:
case GST_GL_DISPLAY_ACTION_REDISPLAY:
//msg is out of date if the associated display is not in the map
- if (!g_hash_table_lookup (gst_gl_display_map, (gpointer)(guint64)msg->glutWinId))
+ if (!g_hash_table_lookup (gst_gl_display_map, GINT_TO_POINTER (msg->glutWinId)))
valid = FALSE;
break;
default:
//retrieve the display associated to the glut context
glutWinId = glutGetWindow ();
- display = g_hash_table_lookup (gst_gl_display_map, (gpointer)(guint64)glutWinId);
+ display = g_hash_table_lookup (gst_gl_display_map, GINT_TO_POINTER (glutWinId));
//glutGetWindow return 0 if no windows exists, then g_hash_table_lookup return NULL
if (display == NULL) return;
//retrieve the display associated to the glut context
glutWinId = glutGetWindow ();
- display = g_hash_table_lookup (gst_gl_display_map, (gpointer)(guint64)glutWinId);
+ display = g_hash_table_lookup (gst_gl_display_map, GINT_TO_POINTER (glutWinId));
//glutGetWindow return 0 if no windows exists, then g_hash_table_lookup return NULL
if (display == NULL) return;
//retrieve the display associated to the glut context
glutWinId = glutGetWindow ();
- display = g_hash_table_lookup (gst_gl_display_map, (gpointer)(guint64)glutWinId);
+ display = g_hash_table_lookup (gst_gl_display_map, GINT_TO_POINTER (glutWinId));
//glutGetWindow return 0 if no windows exists, then g_hash_table_lookup return NULL
if (display == NULL) return;