| 3313 | }; |
| 3314 | |
| 3315 | static Muxer *mux_alloc(void) |
| 3316 | { |
| 3317 | Muxer *mux = allocate_array_elem(&output_files, sizeof(*mux), &nb_output_files); |
| 3318 | |
| 3319 | if (!mux) |
| 3320 | return NULL; |
| 3321 | |
| 3322 | mux->of.class = &output_file_class; |
| 3323 | mux->of.index = nb_output_files - 1; |
| 3324 | |
| 3325 | snprintf(mux->log_name, sizeof(mux->log_name), "out#%d", mux->of.index); |
| 3326 | |
| 3327 | return mux; |
| 3328 | } |
| 3329 | |
| 3330 | int of_open(const OptionsContext *o, const char *filename, Scheduler *sch) |
| 3331 | { |
no test coverage detected