Project

General

Profile

Bug #3903 » patch-408.diff

Christian Eiden, 2016-07-20 08:36

View differences:

src/input/mpegts/satip/satip_frontend.c 2016-07-20 08:23:14.000000000 +0200
754 754
    return 0;
755 755
  }
756
  if (tr->sf_pids.all) {
756
  mpegts_pid_weighted(&wpid, &tr->sf_pids, lfe->sf_device->sd_pids_max);
757

  
758
  if (tr->sf_pids.all || (lfe->sf_device->sd_fullmux_ok && wpid.count > max_pids_count)) {
759
    mpegts_pid_done(&wpid);
757
all:
758 760
    i = tr->sf_pids_tuned.all;
759 761
    mpegts_pid_done(&tr->sf_pids_tuned);
760 762
    tr->sf_pids_tuned.all = 1;
......
771 773
             tr->sf_pids_tuned.all ||
772 774
             tr->sf_pids.count == 0) {
773
    mpegts_pid_weighted(&wpid, &tr->sf_pids, lfe->sf_device->sd_pids_max);
774 775
    j = MIN(wpid.count, lfe->sf_device->sd_pids_max);
775 776
    add = alloca(1 + j * 5);
776 777
    add[0] = '\0';
......
790 791
  } else {
791
    mpegts_pid_weighted(&wpid, &tr->sf_pids, lfe->sf_device->sd_pids_max);
792

  
793
    if (wpid.count > max_pids_count) {
794
      if (lfe->sf_device->sd_fullmux_ok) {
795
        mpegts_pid_done(&wpid);
796
        goto all;
797
      }
798
    }
799

  
800 792
    mpegts_pid_compare(&wpid, &tr->sf_pids_tuned, &padd, &pdel);
801 793
    add = alloca(1 + padd.count * 5);
(2-2/2)