summaryrefslogtreecommitdiff
path: root/src/input/libdvdnav/dvdnav.c
diff options
context:
space:
mode:
authorBastien Nocera <hadess@users.sourceforge.net>2004-10-05 19:07:08 +0000
committerBastien Nocera <hadess@users.sourceforge.net>2004-10-05 19:07:08 +0000
commitc04370672e40a27dae54d36ae574014f846e846a (patch)
tree74d69e68cac28e1e031f8d37e404025bcee0ca12 /src/input/libdvdnav/dvdnav.c
parent11eef8da86acb563110db7af6a46c4a6bea16a3e (diff)
downloadxine-lib-c04370672e40a27dae54d36ae574014f846e846a.tar.gz
xine-lib-c04370672e40a27dae54d36ae574014f846e846a.tar.bz2
- Some fixes for crashes when trying to play encrypted DVDs without libdvdcss
As discussed in: http://article.gmane.org/gmane.comp.video.xine.devel/8010 CVS patchset: 7014 CVS date: 2004/10/05 19:07:08
Diffstat (limited to 'src/input/libdvdnav/dvdnav.c')
-rw-r--r--src/input/libdvdnav/dvdnav.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/input/libdvdnav/dvdnav.c b/src/input/libdvdnav/dvdnav.c
index 452278b98..98b88f826 100644
--- a/src/input/libdvdnav/dvdnav.c
+++ b/src/input/libdvdnav/dvdnav.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: dvdnav.c,v 1.30 2004/03/16 11:43:38 mroi Exp $
+ * $Id: dvdnav.c,v 1.31 2004/10/05 19:07:09 hadess Exp $
*
*/
@@ -403,7 +403,10 @@ dvdnav_status_t dvdnav_get_next_cache_block(dvdnav_t *this, uint8_t **buf,
if(!this->started) {
/* Start the VM */
- vm_start(this->vm);
+ if (!vm_start(this->vm)) {
+ printerr ("Encrypted DVD");
+ return DVDNAV_STATUS_ERR;
+ }
this->started = 1;
}