Make SDTV the default service type for IPTV.

This commit is contained in:
Adam Sutton 2012-08-17 21:46:36 +01:00
parent f7a9c8627d
commit 0f3c6f74b3

View file

@ -535,6 +535,7 @@ iptv_service_find(const char *id, int create)
t = service_create(id, SERVICE_TYPE_IPTV, S_MPEG_TS);
t->s_servicetype = ST_SDTV;
t->s_start_feed = iptv_service_start;
t->s_refresh_feed = iptv_service_refresh;
t->s_stop_feed = iptv_service_stop;
@ -598,6 +599,8 @@ iptv_service_load(void)
t->s_servicetype = u32;
else if (!htsmsg_get_u32(c, "radio", &u32))
t->s_servicetype = ST_RADIO;
else
t->s_servicetype = ST_SDTV;
// Note: for compat with old PR #52 I load "radio" flag
pthread_mutex_lock(&t->s_stream_mutex);