#include "mpegts/fastscan.h"
void
-mpegts_init ( int linuxdvb_mask, str_list_t *satip_client,
+mpegts_init ( int linuxdvb_mask, int nosatip, str_list_t *satip_client,
str_list_t *tsfiles, int tstuners )
{
/* Register classes (avoid API 400 errors due to not yet defined) */
/* SAT>IP DVB client */
#if ENABLE_SATIP_CLIENT
- satip_init(satip_client);
+ satip_init(nosatip, satip_client);
#endif
/* HDHomerun client */
* Setup / Tear down
* *************************************************************************/
-void mpegts_init ( int linuxdvb_mask, str_list_t *satip_client,
+void mpegts_init ( int linuxdvb_mask, int nosatip, str_list_t *satip_client,
str_list_t *tsfiles, int tstuners );
void mpegts_done ( void );
TAILQ_HEAD(satip_discovery_queue, satip_discovery);
+static int satip_enabled;
static int satip_discoveries_count;
static struct satip_discovery_queue satip_discoveries;
static upnp_service_t *satip_discovery_service;
void
satip_device_discovery_start( void )
{
+ if (!satip_enabled)
+ return;
gtimer_arm(&satip_discovery_timer, satip_discovery_timer_cb, NULL, 1);
gtimer_arm(&satip_discovery_static_timer, satip_discovery_static_timer_cb, NULL, 1);
}
* Initialization
*/
-void satip_init ( str_list_t *clients )
+void satip_init ( int nosatip, str_list_t *clients )
{
+ satip_enabled = !nosatip;
TAILQ_INIT(&satip_discoveries);
satip_static_clients = clients;
- dbus_register_rpc_str("satip_addr", NULL, satip_device_addr);
- satip_device_discovery_start();
+ if (satip_enabled) {
+ dbus_register_rpc_str("satip_addr", NULL, satip_device_addr);
+ satip_device_discovery_start();
+ }
}
void satip_done ( void )
void satip_device_discovery_start( void );
-void satip_init( str_list_t *clients );
+void satip_init( int nosatip, str_list_t *clients );
void satip_done( void );
#endif /* __TVH_SATIP_H__ */
opt_threadid = 0,
opt_libav = 0,
opt_ipv6 = 0,
+ opt_nosatip = 0,
opt_satip_rtsp = 0,
#if ENABLE_TSFILE
opt_tsfile_tuner = 0,
OPT_INT, &opt_satip_rtsp },
#endif
#if ENABLE_SATIP_CLIENT
- { 0, "satip_xml", N_("URL with the SAT>IP server XML location"),
+ { 0, "nosatip", N_("Disable SAT>IP client"),
+ OPT_BOOL, &opt_nosatip },
+ { 0, "satip_xml", N_("URL with the SAT>IP server XML location"),
OPT_STR_LIST, &opt_satip_xml },
#endif
{ 0, NULL, N_("Server Connectivity"), OPT_BOOL, NULL },
dvb_init();
#if ENABLE_MPEGTS
- mpegts_init(adapter_mask, &opt_satip_xml, &opt_tsfile, opt_tsfile_tuner);
+ mpegts_init(adapter_mask, opt_nosatip, &opt_satip_xml,
+ &opt_tsfile, opt_tsfile_tuner);
#endif
channel_init();