info.vdr contains Dolby Audio Track although it's disabled under Setup
Commit Message
André Weidemann wrote:
> Hi List,
> I was trying to improve the dvd-burn plugin so it contains the correct
> language information for each audio track after dvd creation.
> On my VDR system (1.3.37) I disabled DolbyDigital in the Setup. And as
> far as I could see, AC3 is not recoreded when it's disabled.
> The info.vdr file however still contains the audio track information for
> Dolby Digital.
> Could this be fixed? So that the Dolby track info is only written to
> info.vdr when it is enabled under Setup?
Please try if this helps:
Klaus
@@ -247,6 +247,8 @@
if (components) {
for (int i = 0; i < components->NumComponents(); i++) {
tComponent *p = components->Component(i);
+ if (!Setup.UseDolbyDigital && p->stream == 0x02 && p->type == 0x05)
+ continue;
fprintf(f, "%sX %s\n", Prefix, *p->ToString());
}
}