Changeset 107576 in vbox
- Timestamp:
- Jan 9, 2025 9:47:37 AM (9 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/UsbWebcamInterface.cpp
r106061 r107576 152 152 void EmWebcam::EmWebcamCbNotify(uint32_t u32Id, const void *pvData, uint32_t cbData) 153 153 { 154 int vrc = VINF_SUCCESS;155 156 154 switch (u32Id) 157 155 { … … 178 176 { 179 177 AssertFailed(); 180 vrc = VERR_NOT_SUPPORTED;181 178 break; 182 179 } … … 184 181 EMWEBCAMREMOTE *pRemote = (EMWEBCAMREMOTE *)RTMemAllocZ(sizeof(EMWEBCAMREMOTE)); 185 182 if (pRemote == NULL) 186 {187 vrc = VERR_NO_MEMORY;188 183 break; 189 }190 184 191 185 pRemote->pEmWebcam = this; … … 200 194 201 195 /* Tell the server that this webcam will be used. */ 202 vrc = mParent->VideoInDeviceAttach(&mpRemote->deviceHandle, mpRemote);196 int vrc = mParent->VideoInDeviceAttach(&mpRemote->deviceHandle, mpRemote); 203 197 if (RT_FAILURE(vrc)) 204 198 { … … 210 204 /* Get the device description. */ 211 205 vrc = mParent->VideoInGetDeviceDesc(NULL, &mpRemote->deviceHandle); 212 213 206 if (RT_FAILURE(vrc)) 214 207 { … … 220 213 221 214 LogFlowFunc(("sent DeviceDesc\n")); 222 } break; 215 break; 216 } 223 217 224 218 case VRDE_VIDEOIN_NOTIFY_ID_DETACH: … … 236 230 /* mpRemote is deallocated in EmWebcamDestruct */ 237 231 } 238 } break; 232 233 break; 234 } 239 235 240 236 default: 241 vrc = VERR_INVALID_PARAMETER;242 237 AssertFailed(); 243 238 break;
Note:
See TracChangeset
for help on using the changeset viewer.