summaryrefslogtreecommitdiff
path: root/testsuite/indexers
diff options
context:
space:
mode:
authorThomas Vander Stichele <thomas@apestaart.org>2004-03-15 19:27:17 +0000
committerThomas Vander Stichele <thomas@apestaart.org>2004-03-15 19:27:17 +0000
commit7baa6c18e7ea33c0783aa227838544a53393a939 (patch)
tree2828012c446780bfaa5276fa3ab23be4a975e52d /testsuite/indexers
parent84f49e604dc2940a8f58de9f89a27b8dcab3498f (diff)
don't mix tabs and spaces
Original commit message from CVS: don't mix tabs and spaces
Diffstat (limited to 'testsuite/indexers')
-rw-r--r--testsuite/indexers/cache1.c11
-rw-r--r--testsuite/indexers/indexdump.c12
2 files changed, 12 insertions, 11 deletions
diff --git a/testsuite/indexers/cache1.c b/testsuite/indexers/cache1.c
index ed2bb4d1d..e61d9d5db 100644
--- a/testsuite/indexers/cache1.c
+++ b/testsuite/indexers/cache1.c
@@ -44,7 +44,7 @@ lookup (GstIndex * index, GstIndexLookupMethod method,
g_print ("OK (not found)\n");
else
g_print ("FAIL - no index entry found for %lld %s, expecting %lld\n",
- src_value, def->nick, expecting);
+ src_value, def->nick, expecting);
}
}
@@ -55,7 +55,8 @@ typedef struct _GstIndexTestCase
gint64 src_value;
GstFormat dest_format;
gint64 expecting;
-} GstIndexTestCase;
+}
+GstIndexTestCase;
const static GstIndexTestCase cases[] = {
{GST_INDEX_LOOKUP_EXACT, GST_FORMAT_BYTES, 3, GST_FORMAT_TIME, 3000},
@@ -68,7 +69,7 @@ const static GstIndexTestCase cases[] = {
{GST_INDEX_LOOKUP_AFTER, GST_FORMAT_TIME, 0, GST_FORMAT_BYTES, 0},
{GST_INDEX_LOOKUP_BEFORE, GST_FORMAT_TIME, -1, GST_FORMAT_BYTES, -1},
{GST_INDEX_LOOKUP_BEFORE, GST_FORMAT_TIME, G_MAXINT64, GST_FORMAT_BYTES,
- 99999},
+ 99999},
{GST_INDEX_LOOKUP_AFTER, GST_FORMAT_TIME, G_MAXINT64, GST_FORMAT_BYTES, -1},
};
@@ -98,14 +99,14 @@ main (gint argc, gchar * argv[])
for (i = 0; i < 100000; i++) {
gst_index_add_association (index, 0, 0, GST_FORMAT_BYTES, (gint64) i,
- GST_FORMAT_TIME, (gint64) (i * 1000), 0);
+ GST_FORMAT_TIME, (gint64) (i * 1000), 0);
}
g_print ("Testing index...\n");
for (i = 0; i < (sizeof (cases) / sizeof (GstIndexTestCase)); i++) {
lookup (index, cases[i].method, cases[i].src_format, cases[i].src_value,
- cases[i].dest_format, cases[i].expecting);
+ cases[i].dest_format, cases[i].expecting);
}
return 0;
diff --git a/testsuite/indexers/indexdump.c b/testsuite/indexers/indexdump.c
index d2f168a8f..ba846b2d6 100644
--- a/testsuite/indexers/indexdump.c
+++ b/testsuite/indexers/indexdump.c
@@ -55,8 +55,8 @@ main (gint argc, gchar * argv[])
while (1) {
gint fx;
GstIndexEntry *entry =
- gst_index_get_assoc_entry (index, id, GST_INDEX_LOOKUP_AFTER, 0,
- GST_FORMAT_TIME, cur);
+ gst_index_get_assoc_entry (index, id, GST_INDEX_LOOKUP_AFTER, 0,
+ GST_FORMAT_TIME, cur);
if (!entry)
break;
@@ -67,11 +67,11 @@ main (gint argc, gchar * argv[])
const GstFormatDefinition *def = gst_format_get_details (fmt);
if (fmt == GST_FORMAT_TIME) {
- cur = GST_INDEX_ASSOC_VALUE (entry, fx) + 1;
- g_print (" time %.4f",
- GST_INDEX_ASSOC_VALUE (entry, fx) / (double) GST_SECOND);
+ cur = GST_INDEX_ASSOC_VALUE (entry, fx) + 1;
+ g_print (" time %.4f",
+ GST_INDEX_ASSOC_VALUE (entry, fx) / (double) GST_SECOND);
} else
- g_print (" %s %lld", def->nick, GST_INDEX_ASSOC_VALUE (entry, fx));
+ g_print (" %s %lld", def->nick, GST_INDEX_ASSOC_VALUE (entry, fx));
}
g_print ("\n");
}