gst-libs/gst/interfaces/xoverlay.c: More guards (we don't want klass to end up being...
authorTim-Philipp Müller <tim@centricular.net>
Sat, 15 Dec 2007 17:27:48 +0000 (17:27 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Sat, 15 Dec 2007 17:27:48 +0000 (17:27 +0000)
Original commit message from CVS:
* gst-libs/gst/interfaces/xoverlay.c: (gst_x_overlay_expose),
(gst_x_overlay_handle_events):
More guards (we don't want klass to end up being NULL).

ChangeLog
common
gst-libs/gst/interfaces/xoverlay.c

index 0ce7082..1b736f2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-12-15  Tim-Philipp Müller  <tim at centricular dot net>
+
+       * gst-libs/gst/interfaces/xoverlay.c: (gst_x_overlay_expose),
+         (gst_x_overlay_handle_events):
+         More guards (we don't want klass to end up being NULL).
+
 2007-12-14  Sebastian Dröge  <slomo@circular-chaos.org>
 
        * configure.ac:
diff --git a/common b/common
index ea5f2cf..a00d4c1 160000 (submodule)
--- a/common
+++ b/common
@@ -1 +1 @@
-Subproject commit ea5f2cfab1a164a5d285fe745343cbe0a476a904
+Subproject commit a00d4c1966aab517c2694c61d580489ebcbce448
index 525529a..f2c8319 100644 (file)
@@ -232,6 +232,7 @@ gst_x_overlay_expose (GstXOverlay * overlay)
   GstXOverlayClass *klass;
 
   g_return_if_fail (overlay != NULL);
+  g_return_if_fail (GST_IS_X_OVERLAY (overlay));
 
   klass = GST_X_OVERLAY_GET_CLASS (overlay);
 
@@ -257,6 +258,7 @@ gst_x_overlay_handle_events (GstXOverlay * overlay, gboolean handle_events)
   GstXOverlayClass *klass;
 
   g_return_if_fail (overlay != NULL);
+  g_return_if_fail (GST_IS_X_OVERLAY (overlay));
 
   klass = GST_X_OVERLAY_GET_CLASS (overlay);