shithub: libdvdcss

Download patch

ref: a5a05b27dab063a9b6843f88a06b83dabbd5cb66
parent: 6b11d456299603869c7f87705c52b7aefff45a0b
author: Gildas Bazin <[email protected]>
date: Tue Oct 29 13:51:37 EST 2002

* src/ioctl.c: fixed typo that prevented unencrypted DVDs to work in
   non-administrator mode.


--- a/src/ioctl.c
+++ b/src/ioctl.c
@@ -2,7 +2,7 @@
  * ioctl.c: DVD ioctl replacement function
  *****************************************************************************
  * Copyright (C) 1999-2001 VideoLAN
- * $Id: ioctl.c,v 1.15 2002/10/12 12:41:24 gbazin Exp $
+ * $Id: ioctl.c,v 1.16 2002/10/29 18:51:37 gbazin Exp $
  *
  * Authors: Markus Kuespert <[email protected]>
  *          Samuel Hocevar <[email protected]>
@@ -276,9 +276,9 @@
                 *pi_copyright = 0;
                 i_ret = 0;
             }
-
-            *pi_copyright = ((key->KeyFlags & DVD_SECTOR_PROTECT_MASK) ==
-                             DVD_SECTOR_PROTECTED) ? 0 : 1;
+            else
+                *pi_copyright = ((key->KeyFlags & DVD_SECTOR_PROTECT_MASK) ==
+                                 DVD_SECTOR_PROTECTED) ? 0 : 1;
         }
     }
     else