예제 #1
0
        private void buttonGetStreamInfo_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                if (!Directory.Exists(settings.lastBluRayPath))
                {
                    logWindow.MessageDemux(Global.Res("ErrorBlurayPath"));
                    if (!silent)
                    {
                        Global.ErrorMsg(Global.Res("ErrorBlurayPath"));
                    }
                    return;
                }
                if (!checkEac3to())
                {
                    return;
                }
                DisableControls();
                UpdateStatus(Global.Res("StatusBar") + " " + Global.Res("StatusBarStreamInfo"));

                comboBoxTitle.Items.Clear();
                listBoxStreams.ItemsSource = null;
                m2tsList.Clear();

                sit            = new StreamInfoTool(settings, ref titleList, settings.lastBluRayPath, GlobalVars.videoTypes, GlobalVars.ac3AudioTypes, GlobalVars.dtsAudioTypes);
                sit.OnInfoMsg += new ExternalTool.InfoEventHandler(DemuxMsg);
                sit.OnLogMsg  += new ExternalTool.LogEventHandler(DemuxMsg);
                sit.Start();
                sit.WaitForExit();
                if (sit == null || !sit.Successfull)
                {
                    titleList.Clear();
                }

                UpdateTitleList();

                demuxedStreamList = new TitleInfo();
                demuxedStreamsWindow.UpdateDemuxedStreams();
            }
            catch (Exception ex)
            {
                logWindow.MessageDemux(Global.Res("ErrorException") + " " + ex.Message);
            }
            finally
            {
                EnableControls();

                UpdateStatus(Global.Res("StatusBar") + " " + Global.Res("StatusBarReady"));
            }
        }
예제 #2
0
        private void buttonGetStreamInfo_Click(object sender, RoutedEventArgs e)
        {
            try
            {                
                if (!Directory.Exists(settings.lastBluRayPath))
                {
                    logWindow.MessageDemux(Global.Res("ErrorBlurayPath"));
                    if (!silent) Global.ErrorMsg(Global.Res("ErrorBlurayPath"));
                    return;
                }
                if (!checkEac3to()) return;
                DisableControls();
                UpdateStatus(Global.Res("StatusBar") + " " + Global.Res("StatusBarStreamInfo"));
                
                comboBoxTitle.Items.Clear();
                listBoxStreams.ItemsSource = null;
                m2tsList.Clear();

                sit = new StreamInfoTool(settings, ref titleList, settings.lastBluRayPath, GlobalVars.videoTypes, GlobalVars.ac3AudioTypes, GlobalVars.dtsAudioTypes);
                sit.OnInfoMsg += new ExternalTool.InfoEventHandler(DemuxMsg);
                sit.OnLogMsg += new ExternalTool.LogEventHandler(DemuxMsg);
                sit.Start();
                sit.WaitForExit();
                if (sit == null || !sit.Successfull)
                {
                    titleList.Clear();
                }

                UpdateTitleList();

                demuxedStreamList = new TitleInfo();
                demuxedStreamsWindow.UpdateDemuxedStreams();
            }
            catch (Exception ex)
            {
                logWindow.MessageDemux(Global.Res("ErrorException") + " " + ex.Message);
            }
            finally
            {
                EnableControls();

                UpdateStatus(Global.Res("StatusBar") + " " + Global.Res("StatusBarReady"));
            }
        }