mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2024-12-25 12:23:59 +00:00
MKVlang support for a multi-language extraction has been added.
This commit is contained in:
parent
3b0031c251
commit
6aaaf6d9ae
@ -852,9 +852,11 @@ void free_sub_track(struct matroska_sub_track* track)
|
|||||||
|
|
||||||
void matroska_save_all(struct matroska_ctx* mkv_ctx,char* lang)
|
void matroska_save_all(struct matroska_ctx* mkv_ctx,char* lang)
|
||||||
{
|
{
|
||||||
|
char* match;
|
||||||
|
mprint("%s\n",lang);
|
||||||
for (int i = 0; i < mkv_ctx->sub_tracks_count; i++){
|
for (int i = 0; i < mkv_ctx->sub_tracks_count; i++){
|
||||||
if (lang){
|
if (lang){
|
||||||
if (strcmp(mkv_ctx->sub_tracks[i]->lang,lang)==0)
|
if (match = strstr(lang,mkv_ctx->sub_tracks[i]->lang) != NULL)
|
||||||
save_sub_track(mkv_ctx, mkv_ctx->sub_tracks[i]);
|
save_sub_track(mkv_ctx, mkv_ctx->sub_tracks[i]);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user