public string GetTagDataSegmentList()
        {
            string result = "";

            foreach (MpegAtom ma in mp4PspAtoms)
            {
                MpegSonyPspAtom pa = new MpegSonyPspAtom(ma);
                try
                {
                    result += MpegSonyPspAtom.GetSegmentList(pa.DataSegments) + " ";
                }
                catch
                {}
            }
            return(result);
        }
        private string GetTagStringData(MpegSonyPspAtom.SegmentType type)
        {
            string result     = "";
            int    foundCount = 0;

            foreach (MpegAtom ma in mp4PspAtoms)
            {
                MpegSonyPspAtom pa = new MpegSonyPspAtom(ma);
                foundCount++;
                try
                {
                    result = MpegSonyPspAtom.GetSegmentUnicodeStringData(pa,
                                                                         type, pa.DataSegments);
                }
                catch
                {
                    foundCount--;
                }
            }
            if (foundCount == 1)
            {
                return(result);
            }
            else if (foundCount > 1)
            {
                throw new ApplicationException("Multiple PSP " +
                                               Enum.GetName(typeof(MpegSonyPspAtom.SegmentType), type) + " tags found.");
                //System.Windows.Forms.MessageBox.Show("Multiple PSP " +
                //    Enum.GetName(typeof(MpegSonyPspAtom.SegmentType), type) + " tags found.");
                // return "<MULTIPLE " + Enum.GetName(typeof(MpegSonyPspAtom.SegmentType), type).ToUpper() + " FOUND>";
            }
            else
            {
                throw new ApplicationException("No PSP " +
                                               Enum.GetName(typeof(MpegSonyPspAtom.SegmentType), type) + " tag found.");
                // System.Windows.Forms.MessageBox.Show("No PSP " +
                //     Enum.GetName(typeof(MpegSonyPspAtom.SegmentType), type) + " tag found.");
                // return "<" + Enum.GetName(typeof(MpegSonyPspAtom.SegmentType), type).ToUpper() + " NOT FOUND>";
            }
        }