summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel Freitas <miguelfreitas@users.sourceforge.net>2003-03-20 23:35:53 +0000
committerMiguel Freitas <miguelfreitas@users.sourceforge.net>2003-03-20 23:35:53 +0000
commitfab960c330cfedd8cdd1476b42394353dccd50f1 (patch)
tree5db04e3f3648cdd51ccfc7ca9d8cbd9f9eae6202
parentc9c07afcf8136e22c0365d7eca6dfaba4cb6dbc9 (diff)
downloadxine-lib-fab960c330cfedd8cdd1476b42394353dccd50f1.tar.gz
xine-lib-fab960c330cfedd8cdd1476b42394353dccd50f1.tar.bz2
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
-rw-r--r--src/input/libdvdread/dvd_reader.c12
1 files 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 ) ||