Commit 2c07a5d9 authored by Steve Lhomme's avatar Steve Lhomme

d3d11_surface: don't use an invalid context in release builds

Should help fixing 7c98a952-ee98-42ef-82a3-8bc4049f3562
parent de40ab5d
......@@ -262,8 +262,14 @@ ok:
static void D3D11_YUY2(filter_t *p_filter, picture_t *src, picture_t *dst)
{
if (src->context == NULL)
{
/* the previous stages creating a D3D11 picture should always fill the context */
msg_Err(p_filter, "missing source context");
return;
}
filter_sys_t *sys = (filter_sys_t*) p_filter->p_sys;
assert(src->context != NULL);
picture_sys_t *p_sys = &((struct va_pic_context*)src->context)->picsys;
D3D11_TEXTURE2D_DESC desc;
......@@ -397,8 +403,14 @@ static void D3D11_YUY2(filter_t *p_filter, picture_t *src, picture_t *dst)
static void D3D11_NV12(filter_t *p_filter, picture_t *src, picture_t *dst)
{
if (src->context == NULL)
{
/* the previous stages creating a D3D11 picture should always fill the context */
msg_Err(p_filter, "missing source context");
return;
}
filter_sys_t *sys = (filter_sys_t*) p_filter->p_sys;
assert(src->context != NULL);
picture_sys_t *p_sys = &((struct va_pic_context*)src->context)->picsys;
D3D11_TEXTURE2D_DESC desc;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment