mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-26 07:56:38 +00:00
caps: use our macros more often in the code
This commit is contained in:
parent
bd7a34bfa1
commit
ccaadae492
1 changed files with 3 additions and 3 deletions
|
@ -1006,7 +1006,7 @@ gst_caps_is_any (const GstCaps * caps)
|
||||||
{
|
{
|
||||||
g_return_val_if_fail (GST_IS_CAPS (caps), FALSE);
|
g_return_val_if_fail (GST_IS_CAPS (caps), FALSE);
|
||||||
|
|
||||||
return (caps->flags & GST_CAPS_FLAGS_ANY);
|
return (CAPS_IS_ANY (caps));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1022,10 +1022,10 @@ gst_caps_is_empty (const GstCaps * caps)
|
||||||
{
|
{
|
||||||
g_return_val_if_fail (GST_IS_CAPS (caps), FALSE);
|
g_return_val_if_fail (GST_IS_CAPS (caps), FALSE);
|
||||||
|
|
||||||
if (caps->flags & GST_CAPS_FLAGS_ANY)
|
if (CAPS_IS_ANY (caps))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
return (caps->structs == NULL) || (caps->structs->len == 0);
|
return CAPS_IS_EMPTY_SIMPLE (caps);
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
|
|
Loading…
Reference in a new issue