[grilo-plugins] local-metadata: Use bit operations for flags
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins] local-metadata: Use bit operations for flags
- Date: Tue, 2 Dec 2014 10:16:30 +0000 (UTC)
commit 413cd1e44dec9ef739adf64859439b9cac1bcb07
Author: Bastien Nocera <hadess hadess net>
Date: Sun Nov 30 16:11:09 2014 +0100
local-metadata: Use bit operations for flags
https://bugzilla.gnome.org/show_bug.cgi?id=740927
src/local-metadata/grl-local-metadata.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/local-metadata/grl-local-metadata.c b/src/local-metadata/grl-local-metadata.c
index 2e5905e..e1b2aa0 100644
--- a/src/local-metadata/grl-local-metadata.c
+++ b/src/local-metadata/grl-local-metadata.c
@@ -74,12 +74,12 @@ struct _GrlLocalMetadataSourcePriv {
/**/
typedef enum {
- FLAG_VIDEO_TITLE = 0x1,
- FLAG_VIDEO_SHOWNAME = 0x2,
- FLAG_VIDEO_DATE = 0x4,
- FLAG_VIDEO_SEASON = 0x8,
- FLAG_VIDEO_EPISODE = 0x10,
- FLAG_THUMBNAIL = 0x20,
+ FLAG_VIDEO_TITLE = 1,
+ FLAG_VIDEO_SHOWNAME = 1 << 1,
+ FLAG_VIDEO_DATE = 1 << 2,
+ FLAG_VIDEO_SEASON = 1 << 3,
+ FLAG_VIDEO_EPISODE = 1 << 4,
+ FLAG_THUMBNAIL = 1 << 5,
} resolution_flags_t;
const gchar *video_blacklisted_prefix[] = {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]