From 7f5df9b082dd8bf0b34417c637692397cae74739 Mon Sep 17 00:00:00 2001 From: Petri Hintukainen Date: Mon, 9 Jul 2012 21:30:55 +0300 Subject: input_test: add terminating NULL pointer to autoplay list (gxine does not use returned mrl count). --- src/input/input_test.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/input/input_test.c b/src/input/input_test.c index 8039c3abd..5bdf165ef 100644 --- a/src/input/input_test.c +++ b/src/input/input_test.c @@ -62,7 +62,7 @@ typedef struct { int width, height, type; } test_input_plugin_t; -static const char * const test_names[TEST_MAX_NAMES + 1] = { +static const char * const test_names[TEST_MAX_NAMES + 1 + 1] = { "test://", "test://color_circle.bmp", "test://rgb_levels.bmp", @@ -73,7 +73,8 @@ static const char * const test_names[TEST_MAX_NAMES + 1] = { "test://rgb_levels.y4m", "test://saturation_levels.y4m", "test://uv_square.y4m", - "test://y_resolution.y4m" + "test://y_resolution.y4m", + NULL }; /* TJ. the generator code - actually a cut down version of my "testvideo" project */ @@ -579,7 +580,7 @@ static input_plugin_t *test_class_get_instance (input_class_t *cls_gen, static const char * const *test_class_get_autoplay_list (input_class_t *this_gen, int *num_files) { - *num_files = sizeof(test_names) / sizeof(test_names[0]) - 1; + *num_files = sizeof(test_names) / sizeof(test_names[0]) - 2; return test_names + 1; } -- cgit v1.2.3