[gnac] Code refactoring



commit 3ae8a8f8b0b1406fd6e84249266b495f233593a5
Author: BenoÃt Dupasquier <bdupasqu src gnome org>
Date:   Wed Feb 1 22:21:45 2012 +0000

    Code refactoring

 libgnac/libgnac-media-item.c |   12 ++----------
 1 files changed, 2 insertions(+), 10 deletions(-)
---
diff --git a/libgnac/libgnac-media-item.c b/libgnac/libgnac-media-item.c
index c8663bd..b1b202e 100644
--- a/libgnac/libgnac-media-item.c
+++ b/libgnac/libgnac-media-item.c
@@ -127,11 +127,7 @@ gboolean
 libgnac_item_has_audio(LibgnacMediaItem *item)
 {
   LibgnacTags *tags = libgnac_metadata_extract(metadata, item->source, NULL);
-  if (libgnac_metadata_tag_exists(tags, GNAC_TAG_HAS_AUDIO)) {
-    return TRUE;
-  }
-
-  return FALSE;
+  return libgnac_metadata_tag_exists(tags, GNAC_TAG_HAS_AUDIO);
 }
 
 
@@ -139,11 +135,7 @@ gboolean
 libgnac_item_has_video(LibgnacMediaItem *item)
 {
   LibgnacTags *tags = libgnac_metadata_extract(metadata, item->source, NULL);
-  if (libgnac_metadata_tag_exists(tags, GNAC_TAG_HAS_VIDEO)) {
-    return TRUE;
-  }
-
-  return FALSE;
+  return libgnac_metadata_tag_exists(tags, GNAC_TAG_HAS_VIDEO);
 }
 
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]