mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-22 10:23:47 +00:00
gst-libs/gst/interfaces/xoverlay.c: Some more guards against invalid input.
Original commit message from CVS: * gst-libs/gst/interfaces/xoverlay.c: (gst_x_overlay_set_xwindow_id), (gst_x_overlay_expose): Some more guards against invalid input.
This commit is contained in:
parent
3db2dfc007
commit
a336b4c10d
2 changed files with 17 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2006-10-08 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
|
* gst-libs/gst/interfaces/xoverlay.c:
|
||||||
|
(gst_x_overlay_set_xwindow_id), (gst_x_overlay_expose):
|
||||||
|
Some more guards against invalid input.
|
||||||
|
|
||||||
2006-10-07 Julien MOUTTE <julien@moutte.net>
|
2006-10-07 Julien MOUTTE <julien@moutte.net>
|
||||||
|
|
||||||
* ext/pango/gsttextoverlay.c: (gst_text_overlay_text_event):
|
* ext/pango/gsttextoverlay.c: (gst_text_overlay_text_event):
|
||||||
|
|
|
@ -156,7 +156,12 @@ gst_x_overlay_base_init (gpointer g_class)
|
||||||
void
|
void
|
||||||
gst_x_overlay_set_xwindow_id (GstXOverlay * overlay, gulong xwindow_id)
|
gst_x_overlay_set_xwindow_id (GstXOverlay * overlay, gulong xwindow_id)
|
||||||
{
|
{
|
||||||
GstXOverlayClass *klass = GST_X_OVERLAY_GET_CLASS (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);
|
||||||
|
|
||||||
if (klass->set_xwindow_id) {
|
if (klass->set_xwindow_id) {
|
||||||
klass->set_xwindow_id (overlay, xwindow_id);
|
klass->set_xwindow_id (overlay, xwindow_id);
|
||||||
|
@ -224,7 +229,11 @@ gst_x_overlay_prepare_xwindow_id (GstXOverlay * overlay)
|
||||||
void
|
void
|
||||||
gst_x_overlay_expose (GstXOverlay * overlay)
|
gst_x_overlay_expose (GstXOverlay * overlay)
|
||||||
{
|
{
|
||||||
GstXOverlayClass *klass = GST_X_OVERLAY_GET_CLASS (overlay);
|
GstXOverlayClass *klass;
|
||||||
|
|
||||||
|
g_return_if_fail (overlay != NULL);
|
||||||
|
|
||||||
|
klass = GST_X_OVERLAY_GET_CLASS (overlay);
|
||||||
|
|
||||||
if (klass->expose) {
|
if (klass->expose) {
|
||||||
klass->expose (overlay);
|
klass->expose (overlay);
|
||||||
|
|
Loading…
Reference in a new issue