]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Fixed parsing w_scan format
authorAndrei Popescu <Popescu.Andrei.David@gmail.com>
Sat, 13 Nov 2021 00:25:28 +0000 (16:25 -0800)
committerFlole998 <Flole998@users.noreply.github.com>
Mon, 15 Nov 2021 23:53:57 +0000 (00:53 +0100)
src/input/mpegts/scanfile.c

index 6addef6f1fd311778a818ee74366f99f297440c1..426f811cf9e5cbea659ce119e96bace207907ea2 100644 (file)
@@ -132,9 +132,9 @@ scanfile_load_atsc ( dvb_mux_conf_t *mux, const char *line )
   char qam[20];
   int r;
 
+  dvb_mux_conf_init(NULL, mux, DVB_SYS_ATSC);
   r = sscanf(line, "%u %s", &mux->dmc_fe_freq, qam);
   if (r != 2) return 1;
-  dvb_mux_conf_init(NULL, mux, DVB_SYS_ATSC);
   if ((mux->dmc_fe_modulation = dvb_str2qam(qam)) == -1) return 1;
 
   return 0;