void OnDisable()
    {
        //	reset everything
        if (Decoder != null)
        {
            Decoder.Dispose();
        }
        Decoder = null;

        PendingInputFrames      = null;
        PendingOutputFrameTimes = null;

        StartTime = null;
    }
Beispiel #2
0
    void OnDisable()
    {
        //	reset everything
        if (Decoder != null)
        {
            Decoder.Dispose();
        }
        Decoder = null;

        PendingInputFrames  = null;
        PendingInputSamples = null;
        ReadFileFunction    = null;
        Mp4BytesRead        = 0;

        H264TrackIndex  = null;
        H264TrackHeader = null;

        Mdats    = null;
        NextMdat = 0;           //	could be wise not to reset this to weed out bugs

        StartTime = null;
    }