[vlc-devel] commit: Also probe file:// for bd. (Laurent Aimar )

git version control git at videolan.org
Tue Nov 10 20:37:58 CET 2009


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Mon Nov  9 23:49:11 2009 +0100| [4668d0656962d28453ed3feaa95dd1909d91b676] | committer: Laurent Aimar 

Also probe file:// for bd.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4668d0656962d28453ed3feaa95dd1909d91b676
---

 modules/access/bd/bd.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/modules/access/bd/bd.c b/modules/access/bd/bd.c
index 232b10f..7eb17bf 100644
--- a/modules/access/bd/bd.c
+++ b/modules/access/bd/bd.c
@@ -66,6 +66,7 @@ vlc_module_begin ()
         CACHING_TEXT, CACHING_LONGTEXT, true )
     set_capability( "access_demux", 60 )
     add_shortcut( "bd" )
+    add_shortcut( "file" )
     set_callbacks( Open, Close )
 vlc_module_end ()
 
@@ -152,7 +153,9 @@ static int Open( vlc_object_t *p_this )
     demux_t     *p_demux = (demux_t*)p_this;
     demux_sys_t *p_sys;
 
-    if( *p_demux->psz_access && strcmp( p_demux->psz_access, "bd" ) )
+    if( *p_demux->psz_access &&
+        strcmp( p_demux->psz_access, "bd" ) &&
+        strcmp( p_demux->psz_access, "file" ) )
         return VLC_EGENERIC;
 
     /* */




More information about the vlc-devel mailing list