SATIP: do not show -failed to modify pids- error when no pids are opened

This commit is contained in:
Jaroslav Kysela 2014-07-05 09:04:01 +02:00
parent 89324208df
commit 41a6af0c76

View file

@ -807,7 +807,7 @@ satip_frontend_pid_changed( http_client_t *rtsp,
lfe->sf_pids_tcount = lfe->sf_pids_count;
pthread_mutex_unlock(&lfe->sf_dvr_lock);
r = satip_rtsp_play(rtsp, "all", NULL, NULL, max_pids_len);
r = satip_rtsp_play(rtsp, "all", NULL, NULL, max_pids_len);
r = r == 0 ? 1 : r;
} else if (!lfe->sf_device->sd_pids_deladd ||
@ -828,6 +828,9 @@ satip_frontend_pid_changed( http_client_t *rtsp,
lfe->sf_pids_tcount = lfe->sf_pids_count;
pthread_mutex_unlock(&lfe->sf_dvr_lock);
if (!count || add[0] == '\0')
return 0;
r = satip_rtsp_play(rtsp, add, NULL, NULL, max_pids_len);
r = r == 0 ? 1 : r;