mirror of https://github.com/mpv-player/mpv
demux_mf: remove code repetition
This commit is contained in:
parent
aaaadc9d6b
commit
f935dafa24
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue