[vlc-devel] commit: Auto probe BDA tuner when using dvb:// (Laurent Aimar )

git version control git at videolan.org
Fri Apr 24 21:48:19 CEST 2009


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Fri Apr 24 21:47:18 2009 +0200| [238349f8518dbb447fa03999742ccf1c34b8656e] | committer: Laurent Aimar 

Auto probe BDA tuner when using dvb://

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

 modules/access/bda/bda.c |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/modules/access/bda/bda.c b/modules/access/bda/bda.c
index c5aed1f..6cfb477 100644
--- a/modules/access/bda/bda.c
+++ b/modules/access/bda/bda.c
@@ -398,6 +398,18 @@ static int Open( vlc_object_t *p_this )
     {
         i_ret = dvb_SubmitATSCTuneRequest( p_access );
     }
+    if( !strcmp( p_access->psz_access, "dvb" ) )
+    {
+        /* Try to auto detect */
+        if( i_ret )
+            i_ret = dvb_SubmitDVBSTuneRequest( p_access );
+        if( i_ret )
+            i_ret = dvb_SubmitDVBCTuneRequest( p_access );
+        if( i_ret )
+            i_ret = dvb_SubmitDVBTTuneRequest( p_access );
+        if( i_ret )
+            i_ret = dvb_SubmitATSCTuneRequest( p_access );
+    }
 
     if( !i_ret )
         p_access->psz_demux = strdup( "ts" );




More information about the vlc-devel mailing list