summaryrefslogtreecommitdiff
path: root/gst-libs/gst/gl/win32
diff options
context:
space:
mode:
authorMatthew Waters <ystreet00@gmail.com>2013-07-02 22:45:08 +1000
committerMatthew Waters <ystreet00@gmail.com>2014-03-15 18:36:57 +0100
commit908cc1989b27e4a81f2c62879d0b2403450bbfb3 (patch)
tree02017b61d55c3dbb4b41bb1fe3818c08684aec65 /gst-libs/gst/gl/win32
parentf9d46c29ca7bb2a735394e37290ee3909a57f33d (diff)
downloadgstreamer-plugins-bad-908cc1989b27e4a81f2c62879d0b2403450bbfb3.tar.gz
[726/906] window: don't call a NULL destroy function
Diffstat (limited to 'gst-libs/gst/gl/win32')
-rw-r--r--gst-libs/gst/gl/win32/gstglwindow_win32.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gst-libs/gst/gl/win32/gstglwindow_win32.c b/gst-libs/gst/gl/win32/gstglwindow_win32.c
index 35735b975..0fdf31c5f 100644
--- a/gst-libs/gst/gl/win32/gstglwindow_win32.c
+++ b/gst-libs/gst/gl/win32/gstglwindow_win32.c
@@ -525,7 +525,8 @@ window_proc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
GST_DEBUG ("WM_GST_GL_WINDOW_QUIT\n");
- destroy_cb ((gpointer) wParam);
+ if (destroy_cb)
+ destroy_cb ((gpointer) wParam);
parent_id = GetProp (hWnd, "gl_window_parent_id");
if (parent_id) {