From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id EBABA48ADA for ; Mon, 1 Jan 2024 17:08:45 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 1990868C9DE; Mon, 1 Jan 2024 19:08:43 +0200 (EET) Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 01CEC68AA33 for ; Mon, 1 Jan 2024 19:08:36 +0200 (EET) Received: by mail.gandi.net (Postfix) with ESMTPSA id 6625F240003 for ; Mon, 1 Jan 2024 17:08:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1704128915; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=a4Jo0U9HA4rDHVLxoH98Nh6rNTJNkOTFNv69aKv+RRk=; b=CHYIdNr3tTScd9c3EW1j6deiV8Q/BER3qVKZDUXAuv16O7sgH5uxYEJ/fT1f1JiPca0n1g LPhufOg6OGnQoyQTebWYHHIKrhNwFEaI8hnjIrFULm/MPwtudzI0WdMKkmBGp+k2QEWZQX LBhMm00h9zeTMaeSUdZo+DTLR1g0FEDkYp6uWDav2g8ryDXrMN8Qy/NbUmD33eW/h6n3SP jZ8VCGXt2OlFlNxWTDrFdoakPFt4UCYgGlmkMEv+YmhTfQ6d8lZJccwaCNkPaKBTKMmOEj wWcQtY7rDVSQl/yk+G/ZEplKvIrdy06L8rQfA5D+KAdfq0NFZmzk7Fh5L+Sm/A== Date: Mon, 1 Jan 2024 18:08:34 +0100 From: Michael Niedermayer To: FFmpeg development discussions and patches Message-ID: <20240101170834.GU6420@pb2> References: MIME-Version: 1.0 In-Reply-To: X-GND-Sasl: michael@niedermayer.cc Subject: Re: [FFmpeg-devel] [PATCH] libavdevice/avfoundation.m Add missing type AVMediaType for macOS < 10.13. X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Content-Type: multipart/mixed; boundary="===============0685216833639302522==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============0685216833639302522== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="zoLbNYYBYmPCHwqt" Content-Disposition: inline --zoLbNYYBYmPCHwqt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jan 01, 2024 at 06:38:00AM -0800, David Bohman wrote: > This is a build failure in the master branch as a result of commit > e37b15e26fbc7bc31a86a4a2c7c798e20d4f4c2c: >=20 > There is no type AVMediaType prior to macOS 10.13. > --- > libavdevice/avfoundation.m | 4 ++++ > 1 file changed, 4 insertions(+) >=20 > diff --git a/libavdevice/avfoundation.m b/libavdevice/avfoundation.m > index 6a57163eb7..5fc5cb61c5 100644 > --- a/libavdevice/avfoundation.m > +++ b/libavdevice/avfoundation.m > @@ -761,6 +761,10 @@ static int get_audio_config(AVFormatContext *s) > return 0; > } >=20 > +#if TARGET_OS_OSX && __MAC_OS_X_VERSION_MIN_REQUIRED < 101300 > +typedef NSString *AVMediaType; > +#endif > + > static NSArray* getDevicesWithMediaType(AVMediaType mediaType) { > #if ((TARGET_OS_IPHONE && __IPHONE_OS_VERSION_MIN_REQUIRED >=3D 100000) > || (TARGET_OS_OSX && __MAC_OS_X_VERSION_MIN_REQUIRED >=3D 101500)) > NSMutableArray *deviceTypes =3D nil; error: corrupt patch at line 19 [...] [...] --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Complexity theory is the science of finding the exact solution to an approximation. Benchmarking OTOH is finding an approximation of the exact --zoLbNYYBYmPCHwqt Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEIAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCZZLxiwAKCRBhHseHBAsP q2yYAJ43vuCbBU3jCzjnXbwf1XuKC/yC4QCfbtqB5bWfFFGksY8DnrZvRYE1aN0= =m5Iq -----END PGP SIGNATURE----- --zoLbNYYBYmPCHwqt-- --===============0685216833639302522== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe". --===============0685216833639302522==--