mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
plugins: cope with GST_VAAPI_IS_xxx() macros removal.
This commit is contained in:
parent
3c751b2dfd
commit
e52ea35b11
3 changed files with 7 additions and 7 deletions
|
@ -295,7 +295,7 @@ gst_vaapi_uploader_ensure_display(
|
|||
)
|
||||
{
|
||||
g_return_val_if_fail(GST_VAAPI_IS_UPLOADER(uploader), FALSE);
|
||||
g_return_val_if_fail(GST_VAAPI_IS_DISPLAY(display), FALSE);
|
||||
g_return_val_if_fail(display != NULL, FALSE);
|
||||
|
||||
return ensure_display(uploader,display);
|
||||
}
|
||||
|
|
|
@ -366,7 +366,7 @@ gst_vaapi_video_allocator_new(GstVaapiDisplay *display, GstCaps *caps)
|
|||
GstVaapiSurface *surface;
|
||||
GstVaapiImage *image;
|
||||
|
||||
g_return_val_if_fail(GST_VAAPI_IS_DISPLAY(display), NULL);
|
||||
g_return_val_if_fail(display != NULL, NULL);
|
||||
g_return_val_if_fail(GST_IS_CAPS(caps), NULL);
|
||||
|
||||
allocator = g_object_new(GST_VAAPI_TYPE_VIDEO_ALLOCATOR, NULL);
|
||||
|
|
|
@ -224,7 +224,7 @@ gst_vaapi_video_meta_new(GstVaapiDisplay *display)
|
|||
{
|
||||
GstVaapiVideoMeta *meta;
|
||||
|
||||
g_return_val_if_fail(GST_VAAPI_IS_DISPLAY(display), NULL);
|
||||
g_return_val_if_fail(display != NULL, NULL);
|
||||
|
||||
meta = _gst_vaapi_video_meta_new();
|
||||
if (G_UNLIKELY(!meta))
|
||||
|
@ -289,7 +289,7 @@ gst_vaapi_video_meta_new_with_image(GstVaapiImage *image)
|
|||
{
|
||||
GstVaapiVideoMeta *meta;
|
||||
|
||||
g_return_val_if_fail(GST_VAAPI_IS_IMAGE(image), NULL);
|
||||
g_return_val_if_fail(image != NULL, NULL);
|
||||
|
||||
meta = _gst_vaapi_video_meta_new();
|
||||
if (G_UNLIKELY(!meta))
|
||||
|
@ -316,7 +316,7 @@ gst_vaapi_video_meta_new_with_surface(GstVaapiSurface *surface)
|
|||
{
|
||||
GstVaapiVideoMeta *meta;
|
||||
|
||||
g_return_val_if_fail(GST_VAAPI_IS_SURFACE(surface), NULL);
|
||||
g_return_val_if_fail(surface != NULL, NULL);
|
||||
|
||||
meta = _gst_vaapi_video_meta_new();
|
||||
if (G_UNLIKELY(!meta))
|
||||
|
@ -671,7 +671,7 @@ guint
|
|||
gst_vaapi_video_meta_get_render_flags(GstVaapiVideoMeta *meta)
|
||||
{
|
||||
g_return_val_if_fail(GST_VAAPI_IS_VIDEO_META(meta), 0);
|
||||
g_return_val_if_fail(GST_VAAPI_IS_SURFACE(meta->surface), 0);
|
||||
g_return_val_if_fail(meta->surface != NULL, 0);
|
||||
|
||||
return meta->render_flags;
|
||||
}
|
||||
|
@ -687,7 +687,7 @@ void
|
|||
gst_vaapi_video_meta_set_render_flags(GstVaapiVideoMeta *meta, guint flags)
|
||||
{
|
||||
g_return_if_fail(GST_VAAPI_IS_VIDEO_META(meta));
|
||||
g_return_if_fail(GST_VAAPI_IS_SURFACE(meta->surface));
|
||||
g_return_if_fail(meta->surface != NULL);
|
||||
|
||||
meta->render_flags = flags;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue