Browse Source

mac-virtualcam: Remove unnecessary logging

Removes logging from the DAL plugin that is not really necessary but spams Console.app
gxalpha 4 years ago
parent
commit
ac8eaad483

+ 1 - 16
plugins/mac-virtualcam/src/dal-plugin/OBSDALDevice.mm

@@ -86,9 +86,7 @@
 	case kCMIODevicePropertyDeviceMaster:
 		return sizeof(pid_t);
 	default:
-		DLog(@"Device unhandled getPropertyDataSizeWithAddress for %@",
-		     [OBSDALObjectStore
-			     StringFromPropertySelector:address.mSelector]);
+		break;
 	};
 
 	return 0;
@@ -191,10 +189,6 @@
 		*dataUsed = sizeof(pid_t);
 		break;
 	default:
-		DLog(@"Device unhandled getPropertyDataWithAddress for %@",
-		     [OBSDALObjectStore
-			     StringFromPropertySelector:address.mSelector]);
-		*dataUsed = 0;
 		break;
 	};
 }
@@ -227,9 +221,6 @@
 	case kCMIODevicePropertyLinkedCoreAudioDeviceUID:
 		return false;
 	default:
-		DLog(@"Device unhandled hasPropertyWithAddress for %@",
-		     [OBSDALObjectStore
-			     StringFromPropertySelector:address.mSelector]);
 		return false;
 	};
 }
@@ -262,9 +253,6 @@
 	case kCMIODevicePropertyDeviceMaster:
 		return true;
 	default:
-		DLog(@"Device unhandled isPropertySettableWithAddress for %@",
-		     [OBSDALObjectStore
-			     StringFromPropertySelector:address.mSelector]);
 		return false;
 	};
 }
@@ -285,9 +273,6 @@
 		self.masterPid = *static_cast<const pid_t *>(data);
 		break;
 	default:
-		DLog(@"Device unhandled setPropertyDataWithAddress for %@",
-		     [OBSDALObjectStore
-			     StringFromPropertySelector:address.mSelector]);
 		break;
 	};
 }

+ 0 - 14
plugins/mac-virtualcam/src/dal-plugin/OBSDALStream.mm

@@ -299,7 +299,6 @@
 - (void)fillFrame
 {
 	if (CMSimpleQueueGetFullness(self.queue) >= 1.0) {
-		DLog(@"Queue is full, bailing out");
 		return;
 	}
 
@@ -433,9 +432,6 @@
 	case kCMIOStreamPropertyClock:
 		return sizeof(CFTypeRef);
 	default:
-		DLog(@"Stream unhandled getPropertyDataSizeWithAddress for %@",
-		     [OBSDALObjectStore
-			     StringFromPropertySelector:address.mSelector]);
 		return 0;
 	};
 }
@@ -509,9 +505,6 @@
 		*dataUsed = sizeof(CFTypeRef);
 		break;
 	default:
-		DLog(@"Stream unhandled getPropertyDataWithAddress for %@",
-		     [OBSDALObjectStore
-			     StringFromPropertySelector:address.mSelector]);
 		*dataUsed = 0;
 	};
 }
@@ -543,17 +536,12 @@
 			     StringFromPropertySelector:address.mSelector]);
 		return false;
 	default:
-		DLog(@"Stream unhandled hasPropertyWithAddress for %@",
-		     [OBSDALObjectStore
-			     StringFromPropertySelector:address.mSelector]);
 		return false;
 	};
 }
 
 - (BOOL)isPropertySettableWithAddress:(CMIOObjectPropertyAddress)address
 {
-	DLog(@"Stream unhandled isPropertySettableWithAddress for %@",
-	     [OBSDALObjectStore StringFromPropertySelector:address.mSelector]);
 	return false;
 }
 
@@ -563,8 +551,6 @@
 			  dataSize:(UInt32)dataSize
 			      data:(nonnull const void *)data
 {
-	DLog(@"Stream unhandled setPropertyDataWithAddress for %@",
-	     [OBSDALObjectStore StringFromPropertySelector:address.mSelector]);
 }
 
 @end