mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-29 18:48:44 +00:00
tests: test-filter: fix "deinterlace" option parse.
Default to GST_VAAPI_DEINTERLACE_METHOD_NONE if no "deinterlace" option string was provided, i.e. if it remained set to NULL.
This commit is contained in:
parent
db7a3b8d3e
commit
e6fb4c1cdc
1 changed files with 5 additions and 1 deletions
|
@ -296,7 +296,11 @@ parse_deinterlace(const gchar *str, GstVaapiDeinterlaceMethod *deinterlace_ptr)
|
|||
{
|
||||
g_return_val_if_fail(deinterlace_ptr != NULL, FALSE);
|
||||
|
||||
return str && parse_enum(str, GST_VAAPI_TYPE_DEINTERLACE_METHOD,
|
||||
if (!str) {
|
||||
*deinterlace_ptr = GST_VAAPI_DEINTERLACE_METHOD_NONE;
|
||||
return TRUE;
|
||||
}
|
||||
return parse_enum(str, GST_VAAPI_TYPE_DEINTERLACE_METHOD,
|
||||
GST_VAAPI_DEINTERLACE_METHOD_NONE, (gint *)deinterlace_ptr);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue