From fab960c330cfedd8cdd1476b42394353dccd50f1 Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Thu, 20 Mar 2003 23:35:53 +0000 Subject: patch to enable playing dvds through the network. requires modified libdvdcss: http://www.via.ecp.fr/via/ml/libdvdcss-devel/200303/msg00027.html CVS patchset: 4457 CVS date: 2003/03/20 23:35:53 --- src/input/libdvdread/dvd_reader.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/input/libdvdread/dvd_reader.c b/src/input/libdvdread/dvd_reader.c index a46b47f02..2e87d7ad5 100644 --- a/src/input/libdvdread/dvd_reader.c +++ b/src/input/libdvdread/dvd_reader.c @@ -304,17 +304,23 @@ dvd_reader_t *DVDOpen( const char *path ) if( path == NULL ) return 0; + /* Try to open libdvdcss or fall back to standard functions */ + have_css = dvdinput_setup(); + ret = stat( path, &fileinfo ); if( ret < 0 ) { + + /* maybe "host:port" url? try opening it with acCeSS library */ + if( strchr(path,':') ) { + return DVDOpenImageFile( path, have_css ); + } + /* If we can't stat the file, give up */ fprintf( stderr, "libdvdread: Can't stat %s\n", path ); perror(""); return 0; } - /* Try to open libdvdcss or fall back to standard functions */ - have_css = dvdinput_setup(); - /* First check if this is a block/char device or a file*/ if( S_ISBLK( fileinfo.st_mode ) || S_ISCHR( fileinfo.st_mode ) || -- cgit v1.2.3