mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 10:10:32 +00:00
va: Add modifier paramters check for va_create_surfaces()
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5267>
This commit is contained in:
parent
2c4cb82afc
commit
732a32a243
1 changed files with 2 additions and 0 deletions
|
@ -81,6 +81,8 @@ va_create_surfaces (GstVaDisplay * display, guint rt_format, guint fourcc,
|
|||
guint num_attrs = 2;
|
||||
|
||||
g_return_val_if_fail (num_surfaces > 0, FALSE);
|
||||
/* must have modifiers when num_modifiers > 0 */
|
||||
g_return_val_if_fail (num_modifiers == 0 || modifiers, FALSE);
|
||||
|
||||
if (fourcc > 0) {
|
||||
/* *INDENT-OFF* */
|
||||
|
|
Loading…
Reference in a new issue