]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Moved the frontend hack to the right place.
authorWereCatf <werecatf@gmail.com>
Wed, 13 May 2015 15:55:48 +0000 (18:55 +0300)
committerJaroslav Kysela <perex@perex.cz>
Thu, 14 May 2015 06:48:21 +0000 (08:48 +0200)
src/input/mpegts/satip/satip.c
src/input/mpegts/satip/satip_frontend.c

index 21b3658e863ef056cd3c6763717df6eba3b0a3be..dd3d2a627b17adb85b9a2407e4c6008ce9078175 100644 (file)
@@ -385,7 +385,6 @@ satip_device_calc_uuid( tvh_uuid_t *uuid, const char *satip_uuid )
 static void
 satip_device_hack( satip_device_t *sd )
 {
-  satip_frontend_t *lfe;
   if(sd->sd_disable_workarounds)
       return;
   if (sd->sd_info.deviceid[0] &&
@@ -410,8 +409,6 @@ satip_device_hack( satip_device_t *sd )
     sd->sd_no_univ_lnb = 1;
   } else if (strstr(sd->sd_info.manufacturer, "AVM Berlin") &&
              strstr(sd->sd_info.modelname, "FRITZ!")) {
-    TAILQ_FOREACH(lfe, &sd->sd_frontends, sf_link)
-             lfe->sf_play2 = 1;
     sd->sd_fullmux_ok  = 0;
     sd->sd_pids_deladd = 0;
     sd->sd_pids0       = 1;
@@ -536,8 +533,6 @@ satip_device_create( satip_device_info_t *info )
     }
   }
 
-  satip_device_hack(sd);
-
   if (save)
     satip_device_save(sd);
 
index 73eac473d3312d9aea83b976f4b5eaa101279a9b..cfb3e60449920b8cdba4ce97ef3d9df976aa116f 100644 (file)
@@ -1530,6 +1530,9 @@ satip_frontend_hacks( satip_frontend_t *lfe, int *def_positions )
     lfe->sf_teardown_delay = 1;
   } else if (!strcmp(sd->sd_info.modelname, "IPLNB")) {
     *def_positions = 1;
+  } else if (strstr(sd->sd_info.manufacturer, "AVM Berlin") &&
+              strstr(sd->sd_info.modelname, "FRITZ!")) {
+    lfe->sf_play2 = 1;
   }
 }