From: Petri H. <phi...@us...> - 2012-07-12 07:01:18
|
# HG changeset patch # User Petri Hintukainen <phi...@us...> # Date 1341858655 -10800 # Node ID e02ab18632282c26d6afdceb1652379a57ec5baa # Branch default # Parent 4f48540fcf4fd273451a921f40cf2260997c29cf input_test: add terminating NULL pointer to autoplay list (gxine does not use returned mrl count). diff --git a/src/input/input_test.c b/src/input/input_test.c --- a/src/input/input_test.c +++ b/src/input/input_test.c @@ -62,7 +62,7 @@ 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 @@ "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 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; } |