# HG changeset patch # User diego # Date 1219326016 0 # Node ID afa2cc0166beb5e95d052b27f68e3f6513fd2ef5 # Parent 8e8992737a19e159e8f471a10c0e5365e5ad4ead Sync libdvdcss with upstream version r212. diff -r 8e8992737a19 -r afa2cc0166be Copyright --- a/Copyright Thu Aug 21 11:00:47 2008 +0000 +++ b/Copyright Thu Aug 21 13:40:16 2008 +0000 @@ -42,7 +42,7 @@ License: GNU General Public License Name: libdvdcss -Version: Subversion r208 (post 1.2.9 release) +Version: Subversion r212 (post 1.2.9 release) Homepage: http://developers.videolan.org/libdvdcss/ Directory: libdvdcss Copyright: 1998-2006 VideoLAN diff -r 8e8992737a19 -r afa2cc0166be libdvdcss/css.c --- a/libdvdcss/css.c Thu Aug 21 11:00:47 2008 +0000 +++ b/libdvdcss/css.c Thu Aug 21 13:40:16 2008 +0000 @@ -4,8 +4,8 @@ * Copyright (C) 1999-2003 VideoLAN * $Id$ * - * Authors: Stéphane Borel - * Håkan Hjort + * Authors: Stéphane Borel + * HÃ¥kan Hjort * * based on: * - css-auth by Derek Fawcus @@ -325,6 +325,7 @@ "cracking title keys instead" ); /* Fallback, but not to DISC as the disc key might be faulty */ + memset( p_disc_key, 0, KEY_SIZE ); dvdcss->i_method = DVDCSS_METHOD_TITLE; break; diff -r 8e8992737a19 -r afa2cc0166be libdvdcss/css.h --- a/libdvdcss/css.h Thu Aug 21 11:00:47 2008 +0000 +++ b/libdvdcss/css.h Thu Aug 21 13:40:16 2008 +0000 @@ -4,7 +4,7 @@ * Copyright (C) 1999-2001 VideoLAN * $Id$ * - * Author: Stéphane Borel + * Author: Stéphane Borel * * based on: * - css-auth by Derek Fawcus diff -r 8e8992737a19 -r afa2cc0166be libdvdcss/csstables.h --- a/libdvdcss/csstables.h Thu Aug 21 11:00:47 2008 +0000 +++ b/libdvdcss/csstables.h Thu Aug 21 13:40:16 2008 +0000 @@ -4,7 +4,7 @@ * Copyright (C) 1999-2001 VideoLAN * $Id$ * - * Author: Stéphane Borel + * Author: Stéphane Borel * * based on: * - css-auth by Derek Fawcus diff -r 8e8992737a19 -r afa2cc0166be libdvdcss/device.c --- a/libdvdcss/device.c Thu Aug 21 11:00:47 2008 +0000 +++ b/libdvdcss/device.c Thu Aug 21 13:40:16 2008 +0000 @@ -4,9 +4,9 @@ * Copyright (C) 1998-2006 VideoLAN * $Id$ * - * Authors: Stéphane Borel + * Authors: Stéphane Borel * Sam Hocevar - * Håkan Hjort + * HÃ¥kan Hjort * * 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 diff -r 8e8992737a19 -r afa2cc0166be libdvdcss/device.h --- a/libdvdcss/device.h Thu Aug 21 11:00:47 2008 +0000 +++ b/libdvdcss/device.h Thu Aug 21 13:40:16 2008 +0000 @@ -4,9 +4,9 @@ * Copyright (C) 1998-2002 VideoLAN * $Id$ * - * Authors: Stéphane Borel + * Authors: Stéphane Borel * Samuel Hocevar - * Håkan Hjort + * HÃ¥kan Hjort * * 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 diff -r 8e8992737a19 -r afa2cc0166be libdvdcss/dvdcss/dvdcss.h --- a/libdvdcss/dvdcss/dvdcss.h Thu Aug 21 11:00:47 2008 +0000 +++ b/libdvdcss/dvdcss/dvdcss.h Thu Aug 21 13:40:16 2008 +0000 @@ -1,6 +1,6 @@ /** * \file dvdcss.h - * \author Stéphane Borel + * \author Stéphane Borel * \author Samuel Hocevar * \brief The \e libdvdcss public header. * @@ -88,6 +88,8 @@ int i_flags ); LIBDVDCSS_EXPORT char * dvdcss_error ( dvdcss_t ); +LIBDVDCSS_EXPORT int dvdcss_is_scrambled ( dvdcss_t ); + /* * Deprecated stuff. diff -r 8e8992737a19 -r afa2cc0166be libdvdcss/ioctl.c --- a/libdvdcss/ioctl.c Thu Aug 21 11:00:47 2008 +0000 +++ b/libdvdcss/ioctl.c Thu Aug 21 13:40:16 2008 +0000 @@ -7,9 +7,9 @@ * Authors: Markus Kuespert * Samuel Hocevar * Jon Lech Johansen - * Håkan Hjort + * HÃ¥kan Hjort * Eugenio Jarosiewicz - * David Siebörger + * David Siebörger * Alex Strelnikov * Gildas Bazin * diff -r 8e8992737a19 -r afa2cc0166be libdvdcss/libdvdcss.c --- a/libdvdcss/libdvdcss.c Thu Aug 21 11:00:47 2008 +0000 +++ b/libdvdcss/libdvdcss.c Thu Aug 21 13:40:16 2008 +0000 @@ -1,8 +1,8 @@ /* libdvdcss.c: DVD reading library. * - * Authors: Stéphane Borel + * Authors: Stéphane Borel * Samuel Hocevar - * Håkan Hjort + * HÃ¥kan Hjort * * Copyright (C) 1998-2002 VideoLAN * $Id$ @@ -375,6 +375,10 @@ "could not get disc key" ); } } + else + { + memset( dvdcss->css.p_disc_key, 0, KEY_SIZE ); + } /* If the cache is enabled, write the cache directory tag */ if( psz_cache ) @@ -793,3 +797,15 @@ return _dvdcss_title( dvdcss, i_block ); } +/** + * \brief Return 1 if the DVD is scrambled, 0 otherwise. + * + * \param dvdcss a \e libdvdcss instance. + * \return 1 if the DVD is scrambled, 0 otherwise. + * + * This function returns whether the DVD is scrambled. + */ +LIBDVDCSS_EXPORT int dvdcss_is_scrambled ( dvdcss_t dvdcss ) +{ + return dvdcss->b_scrambled; +} diff -r 8e8992737a19 -r afa2cc0166be libdvdcss/libdvdcss.h --- a/libdvdcss/libdvdcss.h Thu Aug 21 11:00:47 2008 +0000 +++ b/libdvdcss/libdvdcss.h Thu Aug 21 13:40:16 2008 +0000 @@ -4,7 +4,7 @@ * Copyright (C) 1998-2001 VideoLAN * $Id$ * - * Authors: Stéphane Borel + * Authors: Stéphane Borel * Samuel Hocevar * * This program is free software; you can redistribute it and/or modify