[vlc-devel] commit: dvb: set demux=ts only if we didn't do scan (Ilkka Ollakka )

git version control git at videolan.org
Fri Oct 30 16:45:47 CET 2009


vlc | branch: master | Ilkka Ollakka <ileoo at iki.fi> | Fri Oct 30 17:44:35 2009 +0200| [a45e7b566f754925d10a0d2a84bccf97c5c5957a] | committer: Ilkka Ollakka 

dvb: set demux=ts only if we didn't do scan

Without this when scanning, we would force demuxer to ts but outputted m3u-playlist.

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

 modules/access/dvb/access.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/modules/access/dvb/access.c b/modules/access/dvb/access.c
index f88d27f..3c40234 100644
--- a/modules/access/dvb/access.c
+++ b/modules/access/dvb/access.c
@@ -421,8 +421,11 @@ static int Open( vlc_object_t *p_this )
     else
         p_sys->i_read_once = DVB_READ_ONCE_START;
 
-    free( p_access->psz_demux );
-    p_access->psz_demux = strdup( "ts" );
+    if( !p_sys->b_scan_mode )
+    {
+        free( p_access->psz_demux );
+        p_access->psz_demux = strdup( "ts" );
+    }
     return VLC_SUCCESS;
 }
 




More information about the vlc-devel mailing list