From: gb Date: Thu, 4 Mar 2010 17:40:47 +0000 (+0000) Subject: Cosmetics (more checks, includes). X-Git-Tag: accepted/trunk/20120822.173359~774 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5809b63aafbaf71e6534ea59e9e83281132e9d44;p=profile%2Fivi%2Fgstreamer-vaapi.git Cosmetics (more checks, includes). --- diff --git a/gst-libs/gst/vaapi/gstvaapidisplay_x11.c b/gst-libs/gst/vaapi/gstvaapidisplay_x11.c index d215230..3a2db88 100644 --- a/gst-libs/gst/vaapi/gstvaapidisplay_x11.c +++ b/gst-libs/gst/vaapi/gstvaapidisplay_x11.c @@ -129,6 +129,8 @@ gst_vaapi_display_x11_get_display(GstVaapiDisplayX11 *display) { GstVaapiDisplayX11Private *priv = display->priv; + g_return_val_if_fail(GST_VAAPI_IS_DISPLAY_X11(display), NULL); + return priv->display; } @@ -138,6 +140,8 @@ gst_vaapi_display_x11_set_display(GstVaapiDisplayX11 *display, { GstVaapiDisplayX11Private *priv = display->priv; + g_return_if_fail(GST_VAAPI_IS_DISPLAY_X11(display)); + if (x11_display) { VADisplay va_display = vaGetDisplay(x11_display); if (va_display) diff --git a/gst-libs/gst/vaapi/gstvaapidisplay_x11.h b/gst-libs/gst/vaapi/gstvaapidisplay_x11.h index 8633a02..bd7b223 100644 --- a/gst-libs/gst/vaapi/gstvaapidisplay_x11.h +++ b/gst-libs/gst/vaapi/gstvaapidisplay_x11.h @@ -21,7 +21,7 @@ #ifndef GST_VAAPI_DISPLAY_X11_H #define GST_VAAPI_DISPLAY_X11_H -#include "gstvaapidisplay.h" +#include #include G_BEGIN_DECLS