Пример #1
0
        private void TestFixMedia2()
        {
            int hr;

            double start, stop;

            start = 1243.124;
            stop  = 10000000000.6457;

            hr = m_pSource1Src.SetMediaName("foo.avi");
            DESError.ThrowExceptionForHR(hr);

            hr = ((IAMTimelineObj)m_pSource1Src).SetStartStop(0, 1234563053945);
            DESError.ThrowExceptionForHR(hr);

            // Connect the track to the source
            hr = m_VideoTrack.SrcAdd((IAMTimelineObj)m_pSource1Src);
            DESError.ThrowExceptionForHR(hr);

            hr = m_pSource1Src.FixMediaTimes2(ref start, ref stop);
            DESError.ThrowExceptionForHR(hr);

            Debug.Assert(stop != 10000000000.6457, "FixMediaTimes2");
        }