Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Revert "More elegant solution by perexg"
This reverts commit 130f413.

- moved the pid 21 addition to the right if block
  • Loading branch information
perexg committed May 4, 2015
1 parent f7bfac0 commit d46b3c4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/input/mpegts/satip/satip_frontend.c
Expand Up @@ -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);

Expand Down Expand Up @@ -1215,6 +1213,8 @@ satip_frontend_input_thread ( void *aux )
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)
Expand Down
1 change: 1 addition & 0 deletions src/input/mpegts/satip/satip_private.h
Expand Up @@ -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,
Expand Down
5 changes: 4 additions & 1 deletion src/input/mpegts/satip/satip_rtsp.c
Expand Up @@ -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",
Expand Down

0 comments on commit d46b3c4

Please sign in to comment.