Changeset 48607 in vbox for trunk/src/VBox/Main/src-server
- Timestamp:
- Sep 20, 2013 3:47:37 PM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 89180
- Location:
- trunk/src/VBox/Main/src-server
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/HostImpl.cpp
r48578 r48607 32 32 33 33 #include "HostNetworkInterfaceImpl.h" 34 #include "HostVideo CaptureDeviceImpl.h"34 #include "HostVideoInputDeviceImpl.h" 35 35 #include "MachineImpl.h" 36 36 #include "AutoCaller.h" … … 1731 1731 * 1732 1732 * @returns COM status code 1733 * @param aVideo CaptureDevices Array of interface pointers to be filled.1734 */ 1735 STDMETHODIMP Host::COMGETTER(Video CaptureDevices)(ComSafeArrayOut(IHostVideoCaptureDevice*, aVideoCaptureDevices))1736 { 1737 if (ComSafeArrayOutIsNull(aVideo CaptureDevices))1733 * @param aVideoInputDevices Array of interface pointers to be filled. 1734 */ 1735 STDMETHODIMP Host::COMGETTER(VideoInputDevices)(ComSafeArrayOut(IHostVideoInputDevice*, aVideoInputDevices)) 1736 { 1737 if (ComSafeArrayOutIsNull(aVideoInputDevices)) 1738 1738 return E_POINTER; 1739 1739 … … 1742 1742 1743 1743 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 1744 HostVideo CaptureDeviceList list;1745 1746 HRESULT hr = HostVideo CaptureDevice::queryHostDevices(&list);1744 HostVideoInputDeviceList list; 1745 1746 HRESULT hr = HostVideoInputDevice::queryHostDevices(&list); 1747 1747 1748 1748 if (SUCCEEDED(hr)) 1749 1749 { 1750 SafeIfaceArray<IHostVideo CaptureDevice> devices(list);1751 devices.detachTo(ComSafeArrayOutArg(aVideo CaptureDevices));1750 SafeIfaceArray<IHostVideoInputDevice> devices(list); 1751 devices.detachTo(ComSafeArrayOutArg(aVideoInputDevices)); 1752 1752 } 1753 1753 -
trunk/src/VBox/Main/src-server/HostVideoInputDeviceImpl.cpp
r48600 r48607 17 17 */ 18 18 19 #include "HostVideo CaptureDeviceImpl.h"19 #include "HostVideoInputDeviceImpl.h" 20 20 #include "Logging.h" 21 21 … … 25 25 26 26 /* 27 * HostVideo CaptureDevice implementation.28 */ 29 DEFINE_EMPTY_CTOR_DTOR(HostVideo CaptureDevice)30 31 HRESULT HostVideo CaptureDevice::FinalConstruct()27 * HostVideoInputDevice implementation. 28 */ 29 DEFINE_EMPTY_CTOR_DTOR(HostVideoInputDevice) 30 31 HRESULT HostVideoInputDevice::FinalConstruct() 32 32 { 33 33 return BaseFinalConstruct(); 34 34 } 35 35 36 void HostVideo CaptureDevice::FinalRelease()36 void HostVideoInputDevice::FinalRelease() 37 37 { 38 38 uninit(); … … 44 44 * Initializes the instance. 45 45 */ 46 HRESULT HostVideo CaptureDevice::init(const com::Utf8Str &name, const com::Utf8Str &path, const com::Utf8Str &alias)46 HRESULT HostVideoInputDevice::init(const com::Utf8Str &name, const com::Utf8Str &path, const com::Utf8Str &alias) 47 47 { 48 48 LogFlowThisFunc(("\n")); … … 66 66 * Called either from FinalRelease() or by the parent when it gets destroyed. 67 67 */ 68 void HostVideo CaptureDevice::uninit()68 void HostVideoInputDevice::uninit() 69 69 { 70 70 LogFlowThisFunc(("\n")); … … 80 80 } 81 81 82 static HRESULT hostVideo CaptureDeviceAdd(HostVideoCaptureDeviceList *pList,83 84 85 86 { 87 ComObjPtr<HostVideo CaptureDevice> obj;82 static HRESULT hostVideoInputDeviceAdd(HostVideoInputDeviceList *pList, 83 const com::Utf8Str &name, 84 const com::Utf8Str &path, 85 const com::Utf8Str &alias) 86 { 87 ComObjPtr<HostVideoInputDevice> obj; 88 88 HRESULT hr = obj.createObject(); 89 89 if (SUCCEEDED(hr)) … … 110 110 } 111 111 112 static HRESULT hvcdFillList(HostVideo CaptureDeviceList *pList, IEnumMoniker *pEnumMoniker)112 static HRESULT hvcdFillList(HostVideoInputDeviceList *pList, IEnumMoniker *pEnumMoniker) 113 113 { 114 114 int iDevice = 0; … … 159 159 com::Utf8Str alias = com::Utf8StrFmt(".%d", iDevice); 160 160 161 hr = hostVideo CaptureDeviceAdd(pList, name, path, alias);161 hr = hostVideoInputDeviceAdd(pList, name, path, alias); 162 162 163 163 pPropBag->Release(); … … 171 171 } 172 172 173 static HRESULT fillDeviceList(HostVideo CaptureDeviceList *pList)173 static HRESULT fillDeviceList(HostVideoInputDeviceList *pList) 174 174 { 175 175 IEnumMoniker *pEnumMoniker = NULL; … … 191 191 } 192 192 #else 193 static HRESULT fillDeviceList(HostVideo CaptureDeviceList *pList)193 static HRESULT fillDeviceList(HostVideoInputDeviceList *pList) 194 194 { 195 195 NOREF(pList); … … 198 198 #endif /* RT_OS_WINDOWS */ 199 199 200 /* static */ HRESULT HostVideo CaptureDevice::queryHostDevices(HostVideoCaptureDeviceList *pList)200 /* static */ HRESULT HostVideoInputDevice::queryHostDevices(HostVideoInputDeviceList *pList) 201 201 { 202 202 HRESULT hr = fillDeviceList(pList);
Note:
See TracChangeset
for help on using the changeset viewer.