mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-04-20 19:18:31 +00:00
Another attempt to fix crash on windows when moving video window
This commit is contained in:
parent
b211fd7175
commit
ec2ff4e8fd
1 changed files with 5 additions and 2 deletions
|
|
@ -196,15 +196,18 @@ static void on_controls_response(GtkWidget *dialog, int response_id, GtkWidget *
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void on_controls_destroy(GtkWidget *w){
|
static gboolean on_controls_destroy(GtkWidget *w){
|
||||||
GtkWidget *video_window=(GtkWidget*)g_object_get_data(G_OBJECT(w),"video_window");
|
GtkWidget *video_window=(GtkWidget*)g_object_get_data(G_OBJECT(w),"video_window");
|
||||||
gint timeout=GPOINTER_TO_INT(g_object_get_data(G_OBJECT(w),"timeout"));
|
gint timeout=GPOINTER_TO_INT(g_object_get_data(G_OBJECT(w),"timeout"));
|
||||||
if (timeout!=0){
|
if (timeout!=0){
|
||||||
g_source_remove(timeout);
|
g_source_remove(timeout);
|
||||||
g_object_set_data(G_OBJECT(w),"timeout",GINT_TO_POINTER(0));
|
g_object_set_data(G_OBJECT(w),"timeout",GINT_TO_POINTER(0));
|
||||||
}
|
}
|
||||||
|
if (video_window) {
|
||||||
g_object_set_data(G_OBJECT(video_window),"controls",NULL);
|
g_object_set_data(G_OBJECT(video_window),"controls",NULL);
|
||||||
}
|
}
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
static gboolean _set_video_controls_position(GtkWidget *video_window){
|
static gboolean _set_video_controls_position(GtkWidget *video_window){
|
||||||
GtkWidget *w=(GtkWidget*)g_object_get_data(G_OBJECT(video_window),"controls");
|
GtkWidget *w=(GtkWidget*)g_object_get_data(G_OBJECT(video_window),"controls");
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue