[vlc-devel] commit: Qt4: let the compiler figure the number of profiles ( Rémi Denis-Courmont )

git version control git at videolan.org
Mon Nov 30 18:35:32 CET 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Nov 30 19:32:24 2009 +0200| [9fffa028bb2904e3014f158b649763cf463dcf39] | committer: Rémi Denis-Courmont 

Qt4: let the compiler figure the number of profiles

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9fffa028bb2904e3014f158b649763cf463dcf39
---

 modules/gui/qt4/components/sout/profiles.hpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt4/components/sout/profiles.hpp b/modules/gui/qt4/components/sout/profiles.hpp
index d554e02..51f1d32 100644
--- a/modules/gui/qt4/components/sout/profiles.hpp
+++ b/modules/gui/qt4/components/sout/profiles.hpp
@@ -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)",




More information about the vlc-devel mailing list