Skip to content

Commit 6a92e89

Browse files
committed
cap/avf,ca: print that capturing explicitly
to eventualy comply with Apple Developer Program License Agreement 3.3.3.A
1 parent 064930e commit 6a92e89

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

src/audio/capture/coreaudio.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @author Martin Pulec <[email protected]>
44
*/
55
/*
6-
* Copyright (c) 2011-2023 CESNET, z. s. p. o.
6+
* Copyright (c) 2011-2026 CESNET, zájmové sdružení právnických osob
77
* All rights reserved.
88
*
99
* Redistribution and use in source and binary forms, with or without
@@ -394,6 +394,8 @@ static void (^cb)(BOOL) = ^void(BOOL granted) {
394394
} while(0);
395395

396396
if (!failed) {
397+
color_printf("🔴 " MOD_NAME TBOLD(TYELLOW("This application is capturing"
398+
" computer audio.")) "\n");
397399
return s;
398400
}
399401

src/video_capture/avfoundation.mm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -800,6 +800,8 @@ static int vidcap_avfoundation_init(struct vidcap_params *params, void **state)
800800
if (!ret) {
801801
return VIDCAP_INIT_FAIL;
802802
}
803+
color_printf("🔴 " MOD_NAME TBOLD(TYELLOW("This application is capturing"
804+
" computer video.")) "\n");
803805
*state = ret;
804806
return VIDCAP_INIT_OK;
805807
}

src/video_capture/screen_osx.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @author Martin Pulec <[email protected]>
44
*/
55
/*
6-
* Copyright (c) 2012-2025 CESNET
6+
* Copyright (c) 2012-2026 CESNET, zájmové sdružení právnických osob
77
* All rights reserved.
88
*
99
* Redistribution and use in source and binary forms, with or without
@@ -51,6 +51,7 @@
5151
#include "pixfmt_conv.h"
5252
#include "tv.h"
5353
#include "types.h"
54+
#include "utils/color_out.h"
5455
#include "utils/video_frame_pool.h"
5556
#include "video_capture.h"
5657
#include "video_capture_params.h"
@@ -227,6 +228,9 @@ static int vidcap_screen_osx_init(struct vidcap_params *params, void **state)
227228
return VIDCAP_INIT_FAIL;
228229
}
229230

231+
color_printf("🔴 " MOD_NAME TBOLD(TYELLOW("This application is capturing"
232+
" computer screen.")) "\n");
233+
230234
*state = s;
231235
return VIDCAP_INIT_OK;
232236
}

0 commit comments

Comments
 (0)