From a919038b1f9af29bebb93d7175671ce1ba8943b5 Mon Sep 17 00:00:00 2001 From: Petri Hintukainen Date: Tue, 12 Jun 2012 11:42:59 +0300 Subject: Added get_autoplay_list() --- src/input/input_test.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/input/input_test.c b/src/input/input_test.c index d4133d6d9..8039c3abd 100644 --- a/src/input/input_test.c +++ b/src/input/input_test.c @@ -577,6 +577,13 @@ static input_plugin_t *test_class_get_instance (input_class_t *cls_gen, * plugin class functions */ +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; + + return test_names + 1; +} + static xine_mrl_t **test_class_get_dir (input_class_t *this_gen, const char *filename, int *nFiles) { test_input_class_t *this = (test_input_class_t *) this_gen; @@ -617,7 +624,7 @@ static void *init_plugin (xine_t *xine, void *data) { this->input_class.identifier = "test"; this->input_class.description = N_("test card input plugin"); this->input_class.get_dir = test_class_get_dir; - this->input_class.get_autoplay_list = NULL; + this->input_class.get_autoplay_list = test_class_get_autoplay_list; this->input_class.dispose = test_class_dispose; this->input_class.eject_media = NULL; -- cgit v1.2.3