]> git.sesse.net Git - vlc/commitdiff
Qt4: let the compiler figure the number of profiles
authorRémi Denis-Courmont <remi@remlab.net>
Mon, 30 Nov 2009 17:32:24 +0000 (19:32 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Mon, 30 Nov 2009 17:32:24 +0000 (19:32 +0200)
modules/gui/qt4/components/sout/profiles.hpp

index d554e021efadecf73dde94f72a1b352231077cb8..51f1d32a42d1b299ebc9f875e7d13427543030a9 100644 (file)
@@ -1,5 +1,5 @@
-/* Increase this value if you add a new profile */
-#define NB_PROFILE 12
+#define NB_PROFILE \
+    (sizeof(video_profile_value_list)/sizeof(video_profile_value_list[0]))
 
 static const char *const video_profile_name_list[] = {
     "Video - H.264 + AAC (TS)",