summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosep Torra <n770galaxy@gmail.com>2011-08-26 00:06:12 +0200
committerJosep Torra <n770galaxy@gmail.com>2011-08-26 14:11:15 +0200
commit0b31cb5d73bf8eb42d69b9e5431d728dcaf0b051 (patch)
treebec727b8a55e155053f018bdf7b597d72bb4e4bc
parentd7d2be07af5eb03ef0c45d5c5610b681945ca081 (diff)
fileindex: explicitly cast to the enum types
Fixes warning #188: enumerated type mixed with another type reported by ICC.
-rw-r--r--plugins/indexers/gstfileindex.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/indexers/gstfileindex.c b/plugins/indexers/gstfileindex.c
index 727f6ca01..c8c8fb1f5 100644
--- a/plugins/indexers/gstfileindex.c
+++ b/plugins/indexers/gstfileindex.c
@@ -770,7 +770,7 @@ gst_file_index_add_association (GstIndex * index, GstIndexEntry * entry)
}
/* this is a hack, we should use a private structure instead */
- sample.format = 0;
+ sample.format = GST_FORMAT_UNDEFINED;
sample.value = GST_INDEX_ASSOC_VALUE (entry, 0);
exact =
@@ -903,7 +903,7 @@ gst_file_index_get_assoc_entry (GstIndex * index,
}
/* this is a hack, we should use a private structure instead */
- sample.format = formatx;
+ sample.format = (GstFormat) formatx;
sample.value = value;
exact = _fc_bsearch (id_index->array, ARRAY_ROW_SIZE (id_index),
@@ -953,7 +953,7 @@ gst_file_index_get_assoc_entry (GstIndex * index,
{
gint32 flags_be = ARRAY_ROW_FLAGS (row_data);
- GST_INDEX_ASSOC_FLAGS (entry) = GINT32_FROM_BE (flags_be);
+ GST_INDEX_ASSOC_FLAGS (entry) = (GstAssocFlags) GINT32_FROM_BE (flags_be);
for (xx = 0; xx < id_index->nformats; xx++) {
gint64 val_be = ARRAY_ROW_VALUE (row_data, xx);