From: Jaroslav Kysela Date: Mon, 4 May 2015 07:16:29 +0000 (+0200) Subject: Revert "More elegant solution by perexg" X-Git-Tag: v4.1~65 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d46b3c459cd7690847df1380a2cfbe625d174262;p=thirdparty%2Ftvheadend.git Revert "More elegant solution by perexg" This reverts commit 130f413ed8bb79b62d6f45955118729f654bee2e. - moved the pid 21 addition to the right if block --- diff --git a/src/input/mpegts/satip/satip_frontend.c b/src/input/mpegts/satip/satip_frontend.c index 6b61bba9a..08eb779a9 100644 --- a/src/input/mpegts/satip/satip_frontend.c +++ b/src/input/mpegts/satip/satip_frontend.c @@ -557,8 +557,6 @@ satip_frontend_update_pids mpegts_pid_add(&tr->sf_pids, mp->mp_pid, mps->mps_weight); } } - if (lfe->sf_device->sd_fritz_quirk) - mpegts_pid_add(&tr->sf_pids, 21, 1); } pthread_mutex_unlock(&lfe->sf_dvr_lock); @@ -1215,6 +1213,8 @@ new_tune: rtsp_flags |= SATIP_SETUP_PIDS0; if (lfe->sf_device->sd_pilot_on) rtsp_flags |= SATIP_SETUP_PILOT_ON; + if (lfe->sf_device->sd_fritz_quirk) + rtsp_flags |= SATIP_SETUP_FRITZ_QUIRK; r = -12345678; pthread_mutex_lock(&lfe->sf_dvr_lock); if (lfe->sf_req == lfe->sf_req_thread) diff --git a/src/input/mpegts/satip/satip_private.h b/src/input/mpegts/satip/satip_private.h index 789228f3a..c6044d522 100644 --- a/src/input/mpegts/satip/satip_private.h +++ b/src/input/mpegts/satip/satip_private.h @@ -223,6 +223,7 @@ int satip_satconf_get_position #define SATIP_SETUP_PLAY (1<<0) #define SATIP_SETUP_PIDS0 (1<<1) #define SATIP_SETUP_PILOT_ON (1<<2) +#define SATIP_SETUP_FRITZ_QUIRK (1<<3) int satip_rtsp_setup( http_client_t *hc, diff --git a/src/input/mpegts/satip/satip_rtsp.c b/src/input/mpegts/satip/satip_rtsp.c index 9c09d5767..6c6723784 100644 --- a/src/input/mpegts/satip/satip_rtsp.c +++ b/src/input/mpegts/satip/satip_rtsp.c @@ -220,8 +220,11 @@ satip_rtsp_setup( http_client_t *hc, int src, int fe, ADD(dmc_fe_modulation, mtype, dmc->dmc_fe_delsys == DVB_SYS_ATSC ? "8vsb" : "64qam"); } - if (flags & SATIP_SETUP_PIDS0) + if (flags & SATIP_SETUP_PIDS0) { strcat(buf, "&pids=0"); + if (flags & SATIP_SETUP_FRITZ_QUIRK) + strcat(buf, ",21"); + } tvhtrace("satip", "setup params - %s", buf); if (hc->hc_rtsp_stream_id >= 0) snprintf(stream = _stream, sizeof(_stream), "/stream=%li",