demux_mf: remove code repetition

This commit is contained in:
Guido Cella 2024-02-01 10:19:34 +01:00 committed by sfan5
parent aaaadc9d6b
commit f935dafa24
1 changed files with 1 additions and 5 deletions

View File

@ -95,7 +95,6 @@ static mf_t *open_mf_pattern(void *talloc_ctx, struct demuxer *d, char *filename
} }
free_stream(s); free_stream(s);
mp_info(log, "number of files: %d\n", mf->nr_of_files);
goto exit_mf; goto exit_mf;
} }
mp_info(log, "%s is not indirect filelist\n", filename + 1); mp_info(log, "%s is not indirect filelist\n", filename + 1);
@ -117,7 +116,6 @@ static mf_t *open_mf_pattern(void *talloc_ctx, struct demuxer *d, char *filename
} }
talloc_free(fname2); talloc_free(fname2);
} }
mp_info(log, "number of files: %d\n", mf->nr_of_files);
goto exit_mf; goto exit_mf;
} }
@ -143,7 +141,6 @@ static mf_t *open_mf_pattern(void *talloc_ctx, struct demuxer *d, char *filename
continue; continue;
mf_add(mf, gg.gl_pathv[i]); mf_add(mf, gg.gl_pathv[i]);
} }
mp_info(log, "number of files: %d\n", mf->nr_of_files);
globfree(&gg); globfree(&gg);
goto exit_mf; goto exit_mf;
} }
@ -208,9 +205,8 @@ static mf_t *open_mf_pattern(void *talloc_ctx, struct demuxer *d, char *filename
} }
} }
mp_info(log, "number of files: %d\n", mf->nr_of_files);
exit_mf: exit_mf:
mp_info(log, "number of files: %d\n", mf->nr_of_files);
return mf; return mf;
} }