VirtualBox

Ignore:
Timestamp:
Sep 20, 2013 3:47:37 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
89180
Message:

VBoxManage,Main: VideoCaptureDevice -> VideoInputDevice

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageList.cpp

    r48600 r48607  
    738738 * @param   pVirtualBox         Reference to the IVirtualBox pointer.
    739739 */
    740 static HRESULT listVideoCaptureDevices(const ComPtr<IVirtualBox> pVirtualBox)
     740static HRESULT listVideoInputDevices(const ComPtr<IVirtualBox> pVirtualBox)
    741741{
    742742    HRESULT rc;
    743743    ComPtr<IHost> host;
    744744    CHECK_ERROR(pVirtualBox, COMGETTER(Host)(host.asOutParam()));
    745     com::SafeIfaceArray<IHostVideoCaptureDevice> hostVideoCaptureDevices;
    746     CHECK_ERROR(host, COMGETTER(VideoCaptureDevices)(ComSafeArrayAsOutParam(hostVideoCaptureDevices)));
    747     RTPrintf("Video Capture Devices: %u\n", hostVideoCaptureDevices.size());
    748     for (size_t i = 0; i < hostVideoCaptureDevices.size(); ++i)
    749     {
    750         ComPtr<IHostVideoCaptureDevice> p = hostVideoCaptureDevices[i];
     745    com::SafeIfaceArray<IHostVideoInputDevice> hostVideoInputDevices;
     746    CHECK_ERROR(host, COMGETTER(VideoInputDevices)(ComSafeArrayAsOutParam(hostVideoInputDevices)));
     747    RTPrintf("Video Input Devices: %u\n", hostVideoInputDevices.size());
     748    for (size_t i = 0; i < hostVideoInputDevices.size(); ++i)
     749    {
     750        ComPtr<IHostVideoInputDevice> p = hostVideoInputDevices[i];
    751751        Bstr name;
    752752        p->COMGETTER(Name)(name.asOutParam());
     
    790790    kListGroups,
    791791    kListNatNetworks,
    792     kListVideoCaptureDevices
     792    kListVideoInputDevices
    793793};
    794794
     
    11241124        }
    11251125
    1126         case kListVideoCaptureDevices:
    1127             rc = listVideoCaptureDevices(pVirtualBox);
     1126        case kListVideoInputDevices:
     1127            rc = listVideoInputDevices(pVirtualBox);
    11281128            break;
    11291129
     
    11761176        { "extpacks",           kListExtPacks,           RTGETOPT_REQ_NOTHING },
    11771177        { "groups",             kListGroups,             RTGETOPT_REQ_NOTHING },
    1178         { "webcams",            kListVideoCaptureDevices, RTGETOPT_REQ_NOTHING },
     1178        { "webcams",            kListVideoInputDevices, RTGETOPT_REQ_NOTHING },
    11791179    };
    11801180
     
    12221222            case kListGroups:
    12231223            case kListNatNetworks:
    1224             case kListVideoCaptureDevices:
     1224            case kListVideoInputDevices:
    12251225                enmOptCommand = (enum enmListType)ch;
    12261226                if (fOptMultiple)
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette