ref: c2d6c5f6f862cbbdba032f4f8d89fc38324174fd
parent: 6d3c82cb01166d054ee8b83860b9b84cca6ab721
author: Sam Hocevar <[email protected]>
date: Wed Jun 18 13:23:55 EDT 2003
* ./src/libdvdcss.c: if DVDCSS_VERBOSE is greater than 2, do as if it was 2.
--- a/src/libdvdcss.c
+++ b/src/libdvdcss.c
@@ -5,7 +5,7 @@
* H�kan Hjort <[email protected]>
*
* Copyright (C) 1998-2002 VideoLAN
- * $Id: libdvdcss.c,v 1.32 2003/06/12 23:22:34 sam Exp $
+ * $Id: libdvdcss.c,v 1.33 2003/06/18 17:23:55 sam Exp $
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -200,15 +200,10 @@
*/
if( psz_verbose != NULL )
{
- switch( atoi( psz_verbose ) )
- {
- case 2:
- dvdcss->b_debug = 1;
- case 1:
- dvdcss->b_errors = 1;
- case 0:
- break;
- }
+ int i = atoi( psz_verbose );
+
+ if( i >= 2 ) dvdcss->b_debug = 1;
+ if( i >= 1 ) dvdcss->b_errors = 1;
}
/*