mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-23 22:46:24 +00:00
Cosmetics (more checks, includes).
This commit is contained in:
parent
ee75347973
commit
5809b63aaf
2 changed files with 5 additions and 1 deletions
|
@ -129,6 +129,8 @@ gst_vaapi_display_x11_get_display(GstVaapiDisplayX11 *display)
|
||||||
{
|
{
|
||||||
GstVaapiDisplayX11Private *priv = display->priv;
|
GstVaapiDisplayX11Private *priv = display->priv;
|
||||||
|
|
||||||
|
g_return_val_if_fail(GST_VAAPI_IS_DISPLAY_X11(display), NULL);
|
||||||
|
|
||||||
return priv->display;
|
return priv->display;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -138,6 +140,8 @@ gst_vaapi_display_x11_set_display(GstVaapiDisplayX11 *display,
|
||||||
{
|
{
|
||||||
GstVaapiDisplayX11Private *priv = display->priv;
|
GstVaapiDisplayX11Private *priv = display->priv;
|
||||||
|
|
||||||
|
g_return_if_fail(GST_VAAPI_IS_DISPLAY_X11(display));
|
||||||
|
|
||||||
if (x11_display) {
|
if (x11_display) {
|
||||||
VADisplay va_display = vaGetDisplay(x11_display);
|
VADisplay va_display = vaGetDisplay(x11_display);
|
||||||
if (va_display)
|
if (va_display)
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
#ifndef GST_VAAPI_DISPLAY_X11_H
|
#ifndef GST_VAAPI_DISPLAY_X11_H
|
||||||
#define GST_VAAPI_DISPLAY_X11_H
|
#define GST_VAAPI_DISPLAY_X11_H
|
||||||
|
|
||||||
#include "gstvaapidisplay.h"
|
#include <gst/vaapi/gstvaapidisplay.h>
|
||||||
#include <va/va_x11.h>
|
#include <va/va_x11.h>
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
Loading…
Reference in a new issue