示例#1
0
        public MediaList(IntPtr hMediaList, ReferenceCountAction action)
        {
            m_hMediaList = hMediaList;

             switch (action)
             {
            case ReferenceCountAction.AddRef:
               this.AddRef();
               break;
            case ReferenceCountAction.Release:
               this.Release();
               break;
             }
        }
示例#2
0
        public MediaList(IntPtr hMediaList, ReferenceCountAction action)
        {
            m_hMediaList = hMediaList;

            switch (action)
            {
            case ReferenceCountAction.AddRef:
                this.AddRef();
                break;

            case ReferenceCountAction.Release:
                this.Release();
                break;
            }
        }
示例#3
0
        public BasicMedia(IntPtr hMedia, ReferenceCountAction refCountAction)
        {
            m_hMedia = hMedia;
            m_path   = LibVlcMethods.libvlc_media_get_mrl(m_hMedia);
            switch (refCountAction)
            {
            case ReferenceCountAction.AddRef:
                AddRef();
                break;

            case ReferenceCountAction.Release:
                Release();
                break;
            }
        }
示例#4
0
文件: Media.cs 项目: rmusina/blankie
        public BasicMedia(IntPtr hMedia, ReferenceCountAction refCountAction)
        {
            m_hMedia = hMedia;
             m_path = LibVlcMethods.libvlc_media_get_mrl(m_hMedia);
             switch (refCountAction)
             {
            case ReferenceCountAction.AddRef:
               AddRef();
               break;

            case ReferenceCountAction.Release:
               Release();
               break;
             }
        }
示例#5
0
文件: Media.cs 项目: kaiiak/NineSky
        public BasicMedia(IntPtr hMedia, ReferenceCountAction refCountAction)
        {
            m_hMedia = hMedia;
            IntPtr pData = LibVlcMethods.libvlc_media_get_mrl(m_hMedia);
            m_path = Marshal.PtrToStringAnsi(pData);
            switch (refCountAction)
            {
                case ReferenceCountAction.AddRef:
                    AddRef();
                    break;

                case ReferenceCountAction.Release:
                    Release();
                    break;
            }
        }
示例#6
0
        public BasicMedia(IntPtr hMedia, ReferenceCountAction refCountAction)
        {
            m_hMedia = hMedia;
            IntPtr pData = LibVlcMethods.libvlc_media_get_mrl(m_hMedia);

            m_path = Marshal.PtrToStringAnsi(pData);
            switch (refCountAction)
            {
            case ReferenceCountAction.AddRef:
                AddRef();
                break;

            case ReferenceCountAction.Release:
                Release();
                break;
            }
        }