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 8EBF049585 for ; Tue, 13 Feb 2024 07:34:52 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id BE8A068D1B7; Tue, 13 Feb 2024 09:34:41 +0200 (EET) Received: from wfout4-smtp.messagingengine.com (wfout4-smtp.messagingengine.com [64.147.123.147]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id A9A2868D1BB for ; Tue, 13 Feb 2024 09:34:35 +0200 (EET) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailfout.west.internal (Postfix) with ESMTP id 9D66B1C0008F for ; Tue, 13 Feb 2024 02:34:33 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Tue, 13 Feb 2024 02:34:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=itanimul.li; h= cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm1; t=1707809673; x= 1707896073; bh=j30f1fampe4ValGhbBLJ61yIk8YAosbpdtYmdqHSncc=; b=B GXlebGJeHGqXJXLfkgRaTehpKnB5QZc3Qsa+lO90FPT079ia30C81HztvXyo3iIh 8pKfW0xba3NSK03VyTw2BuogaozVE9Ut3zWtW/DQb8Dcz8Oa8VQe75yAqUGW/NSa CbJkXEchLSVDzN13PVIlim9lWpd/dAlCkcUYT+F8Hpi372aZuK4Q4df+RdjBLMbO Me3hbPwvxTOiy6mMy1W8kYRNMhy7uUEOT97zNzikEV+/YQ8FwhQtRqb1e4DzvCRl rgFr6anm3XkvEc3jC+niTlQ+nHZEaUrROwLFY/jSlm2DE6rckrn/NzuJFHzC2w7x yHRGSXnb8t9UOqZd8Mk/Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; t=1707809673; x=1707896073; bh=j30f1fampe4Va lGhbBLJ61yIk8YAosbpdtYmdqHSncc=; b=o/weaHSJbHFuYPlKA3yap075BeSAI IoOx2gXe6j2zZdUIL2R76preS43S4oMazp7viQ6kJ8WApSiM8d3EsJa28KSp0kn2 +Or8Z0MS+AMlOfokV6MEv9tbx19QUuurPBQL7V25Q8PEtozQnJY6t6IKXSfYaagM mxVzUc4OS1SE43yd7G6A5q/Dse8YTWYXWHZSXFRk3XCzhEBq1GdH+ATqvgkzop2K 1wjOjyw1+tTXn3TJ0xXxTe+Q7iJw72qeytfKuOIay+ikxFyJpF+clcQpnPQpRvFV 668CtHAJKpgJ4H3YJiGxpF6Bkc7dDE1/At+x3ZHQ9QP0Yhxo/StmKqczA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudeggdduuddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgjfhgggfestdekre dtredttdenucfhrhhomhepfdflrdcuffgvkhhkvghrfdcuoehjuggvkhesihhtrghnihhm uhhlrdhliheqnecuggftrfgrthhtvghrnhepgedvhfffuddugeehveeikeeifeefgfevff ektdehkeeifefhveeuteeufefhteetnecuvehluhhsthgvrhfuihiivgeptdenucfrrghr rghmpehmrghilhhfrhhomhepjhguvghksehithgrnhhimhhulhdrlhhi X-ME-Proxy: Feedback-ID: i84994747:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Tue, 13 Feb 2024 02:34:32 -0500 (EST) From: "J. Dekker" To: ffmpeg-devel@ffmpeg.org Date: Tue, 13 Feb 2024 08:34:26 +0100 Message-ID: <20240213073426.47433-2-jdek@itanimul.li> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240213073426.47433-1-jdek@itanimul.li> References: <20240213073426.47433-1-jdek@itanimul.li> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 2/2] avdevice: deprecate sdl outdev 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: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: Signed-off-by: J. Dekker --- libavdevice/sdl2.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/libavdevice/sdl2.c b/libavdevice/sdl2.c index 342a253dc0..6a6751e40f 100644 --- a/libavdevice/sdl2.c +++ b/libavdevice/sdl2.c @@ -51,6 +51,7 @@ typedef struct { SDL_Rect texture_rect; int inited; + int warned; } SDLContext; static const struct sdl_texture_format_entry { @@ -165,6 +166,14 @@ static int sdl2_write_header(AVFormatContext *s) int i, ret = 0; int flags = 0; + if (!sdl->warned) { + av_log(sdl, AV_LOG_WARNING, + "The sdl output device is deprecated. For monitoring purposes in ffmpeg you can output to a file or use pipes and a video player.\n" + "Example: ffmpeg -i input.mkv -f nut - | ffplay \n" + ); + sdl->warned = 1; + } + if (!sdl->window_title) sdl->window_title = av_strdup(s->url); -- 2.43.0 _______________________________________________ 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".