summaryrefslogtreecommitdiffstats
path: root/libmpdemux/open.c
diff options
context:
space:
mode:
Diffstat (limited to 'libmpdemux/open.c')
-rw-r--r--libmpdemux/open.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/libmpdemux/open.c b/libmpdemux/open.c
index add424d8cf..111e256b67 100644
--- a/libmpdemux/open.c
+++ b/libmpdemux/open.c
@@ -30,6 +30,8 @@ int isSDPFile = 0;
static URL_t* url;
#endif
+int dvbin_param_on=0;
+
int dvd_title=0;
int dvd_chapter=1;
int dvd_last_chapter=0;
@@ -76,6 +78,12 @@ extern int vcd_get_track_end(int fd,int track);
extern int stream_open_tv(stream_t *stream, tvi_handle_t *tvh);
#endif
+#ifdef HAS_DVBIN_SUPPORT
+#include "dvbin.h"
+#endif
+
+
+
#ifdef HAVE_CDDA
stream_t* open_cdda(char* dev,char* track);
#ifdef STREAMING
@@ -478,6 +486,22 @@ if(dvd_title){
}
#endif
+#ifdef HAS_DVBIN_SUPPORT
+if(dvbin_param_on == 1)
+{
+ stream = new_stream(-1, STREAMTYPE_DVB);
+ if (!stream)
+ return(NULL);
+ if (!dvb_streaming_start(stream))
+ return NULL;
+
+ return stream;
+}
+#endif
+
+
+
+
//============ Check for TV-input or multi-file input ====
if( (mf_support == 1)
#ifdef USE_TV