Esempio n. 1
0
        private void DoM2tsInfo()
        {
            try
            {
                DisableControls();
                UpdateStatus(Global.Res("StatusBar") + " " + Global.Res("StatusBarM2tsInfo"));

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

                mit            = new M2tsInfoTool(settings, ref titleList, m2tsList, GlobalVars.videoTypes, GlobalVars.ac3AudioTypes, GlobalVars.dtsAudioTypes);
                mit.OnInfoMsg += new ExternalTool.InfoEventHandler(DemuxMsg);
                mit.OnLogMsg  += new ExternalTool.LogEventHandler(DemuxMsg);
                mit.Start();
                mit.WaitForExit();
                if (mit == null || !mit.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"));
            }
        }
Esempio n. 2
0
        private void DoM2tsInfo()
        {
            try
            {
                DisableControls();
                UpdateStatus(Global.Res("StatusBar") + " " + Global.Res("StatusBarM2tsInfo"));
                                
                comboBoxTitle.Items.Clear();
                listBoxStreams.ItemsSource = null;

                mit = new M2tsInfoTool(settings, ref titleList, m2tsList, GlobalVars.videoTypes, GlobalVars.ac3AudioTypes, GlobalVars.dtsAudioTypes);
                mit.OnInfoMsg += new ExternalTool.InfoEventHandler(DemuxMsg);
                mit.OnLogMsg += new ExternalTool.LogEventHandler(DemuxMsg);
                mit.Start();
                mit.WaitForExit();
                if (mit == null || !mit.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"));
            }
        }