diff options
author | Petri Hintukainen <phintuka@users.sourceforge.net> | 2012-07-09 21:30:55 +0300 |
---|---|---|
committer | Petri Hintukainen <phintuka@users.sourceforge.net> | 2012-07-09 21:30:55 +0300 |
commit | 7f5df9b082dd8bf0b34417c637692397cae74739 (patch) | |
tree | ba899462fa1a01fea1521be5da65e2b6c546eebb /src | |
parent | 38cef810e7e705b49b4043f5347cf16782f809ed (diff) | |
download | xine-lib-7f5df9b082dd8bf0b34417c637692397cae74739.tar.gz xine-lib-7f5df9b082dd8bf0b34417c637692397cae74739.tar.bz2 |
input_test: add terminating NULL pointer to autoplay list (gxine does not use returned mrl count).
Diffstat (limited to 'src')
-rw-r--r-- | src/input/input_test.c | 7 |
1 files 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; } |