From: Julien Isorce Date: Mon, 19 May 2008 21:28:28 +0000 (+0000) Subject: [071/906] remove all warnings X-Git-Tag: 1.19.3~511^2~1989^2~2188 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a9686159a3d65222c9ae83918809401761e16864;p=platform%2Fupstream%2Fgstreamer.git [071/906] remove all warnings git-svn-id: svn://svn.wobow.com/GStreamer_playground/gst-plugins-gl@437 93df14bb-0f41-7a43-8087-d3e2a2f0e464 --- diff --git a/gst-libs/gst/gl/gstgldisplay.c b/gst-libs/gst/gl/gstgldisplay.c index c92e200..86cbb97 100644 --- a/gst-libs/gst/gl/gstgldisplay.c +++ b/gst-libs/gst/gl/gstgldisplay.c @@ -609,7 +609,7 @@ gst_gl_display_glutCreateWindow (GstGLDisplay *display) //insert glut context to the map display->glutWinId = glutWinId; - g_hash_table_insert (gst_gl_display_map, glutWinId, display); + g_hash_table_insert (gst_gl_display_map, (gpointer)(guint64)glutWinId, display); //check glut id validity g_assert (glutGetWindow() == glutWinId); @@ -668,7 +668,7 @@ gst_gl_display_glutDestroyWindow (GstGLDisplay *display) } } - g_hash_table_remove (gst_gl_display_map, display->glutWinId); + g_hash_table_remove (gst_gl_display_map, (gpointer)(guint64)display->glutWinId); g_print ("glut window destroyed: %d\n", display->glutWinId); //if the map is empty, leaveMainloop and join the thread @@ -842,7 +842,7 @@ gst_gl_display_checkMsgValidity (GstGLDisplayMsg *msg) 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, msg->glutWinId)) + if (!g_hash_table_lookup (gst_gl_display_map, (gpointer)(guint64)msg->glutWinId)) valid = FALSE; break; default: @@ -1089,7 +1089,7 @@ gst_gl_display_onReshape(gint width, gint height) //retrieve the display associated to the glut context glutWinId = glutGetWindow (); - display = g_hash_table_lookup (gst_gl_display_map, glutWinId); + display = g_hash_table_lookup (gst_gl_display_map, (gpointer)(guint64)glutWinId); //glutGetWindow return 0 if no windows exists, then g_hash_table_lookup return NULL if (display == NULL) return; @@ -1121,7 +1121,7 @@ void gst_gl_display_draw(void) //retrieve the display associated to the glut context glutWinId = glutGetWindow (); - display = g_hash_table_lookup (gst_gl_display_map, glutWinId); + display = g_hash_table_lookup (gst_gl_display_map, (gpointer)(guint64)glutWinId); //glutGetWindow return 0 if no windows exists, then g_hash_table_lookup return NULL if (display == NULL) return; @@ -1198,7 +1198,7 @@ void gst_gl_display_onClose (void) //retrieve the display associated to the glut context glutWinId = glutGetWindow (); - display = g_hash_table_lookup (gst_gl_display_map, glutWinId); + display = g_hash_table_lookup (gst_gl_display_map, (gpointer)(guint64)glutWinId); //glutGetWindow return 0 if no windows exists, then g_hash_table_lookup return NULL if (display == NULL) return;