Need help to find bug in sourcecode (1 Viewer)

sover

Portal Pro
April 11, 2008
163
24
Home Country
Russian Federation Russian Federation
Hi.
in this Audio lang properties bug thread i post a small bug.
So i found this strings in sourcecode (https://sources.team-mediaportal.com...oPlayerVMR7.cs)
----------------------------------------------------------------
/// <summary>
/// Property to get/set the name for a subtitle stream
/// </summary>
public override string SubtitleLanguage(int iStream)
{
string streamName = SubEngine.GetInstance().GetLanguage(iStream);
if (streamName == null)
{
return Strings.Unknown;
}
// Sometimes underline engine returns Haali mkv streams as: "S: trackname [language]"
Regex regex = new Regex(@"\[([^\]]+)\]");
Match result = regex.Match(streamName);
if (result.Success)
{
streamName = result.Groups[1].Value;
}

return streamName;
}
...................
Log.Debug("VideoPlayer: FoundStreams: Type={0}; Name={1}, Filter={2}, Id={3}, PDWGroup={4}",
FSInfos.Type.ToString(), FSInfos.Name, FSInfos.Filter, FSInfos.Id.ToString(),
sPDWGroup.ToString());
--------------------------------------------------------
This code is work because i see in my log:

2009-09-29 12:28:32.156250 [Debug][MPMain]: VideoPlayer: FoundStreams: Type=Video; Name=V: The Matrix Reloaded (2003) [English], Filter=D:\1\The Matrix.Reloaded.1080p.HDDVD.x264-Sample.mkv, Id=0, PDWGroup=0
2009-09-29 12:28:32.171875 [Debug][MPMain]: VideoPlayer: FoundStreams: Type=Audio; Name=A: AC3 5.1 384 Kbps [Russian], Filter=D:\1\The Matrix.Reloaded.1080p.HDDVD.x264-Sample.mkv, Id=1, PDWGroup=1
2009-09-29 12:28:32.171875 [Debug][MPMain]: VideoPlayer: FoundStreams: Type=Audio; Name=A: DTS 5.1 @ 1.5 Mbps [English], Filter=D:\1\The Matrix.Reloaded.1080p.HDDVD.x264-Sample.mkv, Id=2, PDWGroup=1
2009-09-29 12:28:32.171875 [Debug][MPMain]: VideoPlayer: FoundStreams: Type=Audio; Name=A: Commentary 1 [English], Filter=D:\1\The Matrix.Reloaded.1080p.HDDVD.x264-Sample.mkv, Id=3, PDWGroup=1
2009-09-29 12:28:32.171875 [Debug][MPMain]: VideoPlayer: FoundStreams: Type=Audio; Name=A: Commentary 2 [English], Filter=D:\1\The Matrix.Reloaded.1080p.HDDVD.x264-Sample.mkv, Id=4, PDWGroup=1
2009-09-29 12:28:32.171875 [Debug][MPMain]: VideoPlayer: FoundStreams: Type=Subtitle; Name=S: English [Undetermined], Filter=D:\1\The Matrix.Reloaded.1080p.HDDVD.x264-Sample.mkv, Id=5, PDWGroup=2
2009-09-29 12:28:32.218750 [Info.][3]: planesceneresentImage() frame:0 enabled:False allowed:True
2009-09-29 12:28:32.265625 [Debug][MPMain]: VideoPlayer: FoundStreams: Type=Subtitle; Name=S: [Russian], Filter=D:\1\The Matrix.Reloaded.1080p.HDDVD.x264-Sample.mkv, Id=6, PDWGroup=2
2009-09-29 12:28:32.265625 [Debug][MPMain]: VideoPlayer: FoundStreams: Type=Subtitle_hidden; Name=No subtitles, Filter=D:\1\The Matrix.Reloaded.1080p.HDDVD.x264-Sample.mkv, Id=7, PDWGroup=2

log says that MP is correctly found all streams with all properties but then i go to audio lang menu i see only name of the languages.
I want to find where in sources of MP audio lang section and subtitles menus are situated. I just want to try fix it and need your help.
I know that this is a small issue but it`s very annoying to watch movies with many languages and not to know what lang you play.
Hope for someone of devs support.
 

Users who are viewing this thread

Top Bottom