@@ -34,6 +34,7 @@ using namespace std;
3434static int parse_outputs (libconfig::Setting& outs, channel_t * channel, int i, int j, bool parsing_mixers) {
3535 int oo = 0 ;
3636 for (int o = 0 ; o < channel->output_count ; o++) {
37+ channel->outputs [oo].has_mp3_output = false ;
3738 channel->outputs [oo].lame = NULL ;
3839 channel->outputs [oo].lamebuf = NULL ;
3940
@@ -95,8 +96,7 @@ static int parse_outputs(libconfig::Setting& outs, channel_t* channel, int i, in
9596 }
9697#endif /* LIBSHOUT_HAS_TLS */
9798
98- channel->outputs [oo].lame = airlame_init (channel->mode , channel->highpass , channel->lowpass );
99- channel->outputs [oo].lamebuf = (unsigned char *)malloc (sizeof (unsigned char ) * LAMEBUF_SIZE);
99+ channel->outputs [oo].has_mp3_output = true ;
100100 } else if (!strncmp (outs[o][" type" ], " file" , 4 )) {
101101 channel->outputs [oo].data = XCALLOC (1 , sizeof (struct file_data ));
102102 channel->outputs [oo].type = O_FILE;
@@ -122,8 +122,7 @@ static int parse_outputs(libconfig::Setting& outs, channel_t* channel, int i, in
122122 fdata->split_on_transmission = outs[o].exists (" split_on_transmission" ) ? (bool )(outs[o][" split_on_transmission" ]) : false ;
123123 fdata->include_freq = outs[o].exists (" include_freq" ) ? (bool )(outs[o][" include_freq" ]) : false ;
124124
125- channel->outputs [oo].lame = airlame_init (channel->mode , channel->highpass , channel->lowpass );
126- channel->outputs [oo].lamebuf = (unsigned char *)malloc (sizeof (unsigned char ) * LAMEBUF_SIZE);
125+ channel->outputs [oo].has_mp3_output = true ;
127126
128127 if (fdata->split_on_transmission ) {
129128 if (parsing_mixers) {
0 commit comments