[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xine-cvslog
Subject:    [xine-cvs] =?utf-8?q?HG=3A_xine-lib-1=2E2=3A_input=5Ftest=3A_add_?= =?utf-8?q?terminating_NULL_point
From:       Petri_Hintukainen <phintuka () users ! sourceforge ! net>
Date:       2012-07-12 7:01:07
Message-ID: e02ab18632282c26d6af.1341858655 () hg ! debian ! org
[Download RAW message or body]

# HG changeset patch
# User Petri Hintukainen <phintuka@users.sourceforge.net>
# 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;
 }

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Xine-cvslog mailing list
Xine-cvslog@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xine-cvslog
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic