From: <en...@ke...> - 2010-05-22 20:56:04
|
Module: gstreamer Branch: master Commit: ccaadae49262ccfecdc64d802e9ddc738ec7a3c4 URL: http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=ccaadae49262ccfecdc64d802e9ddc738ec7a3c4 Author: Stefan Kost <en...@us...> Date: Sat May 22 23:26:16 2010 +0300 caps: use our macros more often in the code --- gst/gstcaps.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gst/gstcaps.c b/gst/gstcaps.c index 368326d..c8dfcdf 100644 --- a/gst/gstcaps.c +++ b/gst/gstcaps.c @@ -1006,7 +1006,7 @@ gst_caps_is_any (const GstCaps * caps) { 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); - if (caps->flags & GST_CAPS_FLAGS_ANY) + if (CAPS_IS_ANY (caps)) return FALSE; - return (caps->structs == NULL) || (caps->structs->len == 0); + return CAPS_IS_EMPTY_SIMPLE (caps); } static gboolean |