mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-23 19:31:44 +00:00
Stupid mistake. Actually check if the track really has the default flag set.
This commit is contained in:
parent
cbb245d66f
commit
059ee994a0
@ -562,7 +562,7 @@ default_track_checked(char type) {
|
||||
int i;
|
||||
|
||||
for (i = 0; i < tracks.size(); i++)
|
||||
if (tracks[i]->type == type)
|
||||
if ((tracks[i]->type == type) && tracks[i]->default_track)
|
||||
return i;
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user