Feature #4938 ยป SAT-IP-Add-Transport-Protocol-to-Input-Name.diff
src/input/mpegts/satip/satip_frontend.c | ||
---|---|---|
2255 | 2255 |
(strncmp(lfe->mi_name, "SAT>IP ", 7) == 0 && |
2256 | 2256 |
strstr(lfe->mi_name, " Tuner ") && |
2257 | 2257 |
strstr(lfe->mi_name, " #"))) { |
2258 |
snprintf(lname, sizeof(lname), "SAT>IP %s Tuner #%i (%s)", |
|
2258 |
char transport[4]; |
|
2259 |
switch (lfe->sf_transport_mode) { |
|
2260 |
case RTP_SERVER_DEFAULT: |
|
2261 |
strcpy(transport, lfe->sf_device->sd_tcp_mode ? "AVP" : "RTP"); |
|
2262 |
break; |
|
2263 |
case RTP_UDP: |
|
2264 |
strcpy(transport,"RTP"); |
|
2265 |
break; |
|
2266 |
case RTP_INTERLEAVED: |
|
2267 |
strcpy(transport,"AVP"); |
|
2268 |
break; |
|
2269 |
default: |
|
2270 |
strcpy(transport,"\0"); |
|
2271 |
break; |
|
2272 |
} |
|
2273 |
snprintf(lname, sizeof(lname), "SAT>IP %s Tuner #%i (%s/%s)", |
|
2259 | 2274 |
dvb_type2str(type), num, |
2260 |
satip_device_nicename(sd, nname, sizeof(nname))); |
|
2275 |
satip_device_nicename(sd, nname, sizeof(nname)), |
|
2276 |
transport); |
|
2261 | 2277 |
free(lfe->mi_name); |
2262 | 2278 |
lfe->mi_name = strdup(lname); |
2263 | 2279 |
} |