added source type (MPEGTS etc) to source_info.
This commit is contained in:
parent
8191e132f8
commit
ae4f5f44ff
5 changed files with 6 additions and 0 deletions
|
@ -355,6 +355,8 @@ dvb_transport_setsourceinfo(service_t *t, struct source_info *si)
|
|||
|
||||
lock_assert(&global_lock);
|
||||
|
||||
si->si_type = S_MPEG_TS;
|
||||
|
||||
if(tdmi->tdmi_adapter->tda_rootpath != NULL)
|
||||
si->si_device = strdup(tdmi->tdmi_adapter->tda_rootpath);
|
||||
|
||||
|
|
|
@ -471,6 +471,7 @@ iptv_service_setsourceinfo(service_t *t, struct source_info *si)
|
|||
char straddr[INET6_ADDRSTRLEN];
|
||||
memset(si, 0, sizeof(struct source_info));
|
||||
|
||||
si->si_type = S_MPEG_TS;
|
||||
si->si_adapter = t->s_iptv_iface ? strdup(t->s_iptv_iface) : NULL;
|
||||
if(t->s_iptv_group.s_addr != 0) {
|
||||
si->si_mux = strdup(inet_ntoa(t->s_iptv_group));
|
||||
|
|
|
@ -226,6 +226,7 @@ typedef struct service {
|
|||
*/
|
||||
enum {
|
||||
S_MPEG_TS,
|
||||
S_MPEG_PS,
|
||||
S_OTHER,
|
||||
} s_source_type;
|
||||
|
||||
|
|
|
@ -53,6 +53,7 @@ typedef struct source_info {
|
|||
char *si_mux;
|
||||
char *si_provider;
|
||||
char *si_service;
|
||||
int si_type;
|
||||
} source_info_t;
|
||||
|
||||
static inline void
|
||||
|
|
|
@ -324,6 +324,7 @@ v4l_service_setsourceinfo(service_t *t, struct source_info *si)
|
|||
char buf[64];
|
||||
memset(si, 0, sizeof(struct source_info));
|
||||
|
||||
si->si_type = S_MPEG_PS;
|
||||
si->si_adapter = strdup(t->s_v4l_adapter->va_displayname);
|
||||
|
||||
snprintf(buf, sizeof(buf), "%d Hz", t->s_v4l_frequency);
|
||||
|
|
Loading…
Add table
Reference in a new issue