diff mbox

[FFmpeg-devel,v2,2/2] lavd: deprecate opengl outdev

Message ID 1473541154-16664-2-git-send-email-josh@itanimul.li
State Superseded
Headers show

Commit Message

Josh Dekker Sept. 10, 2016, 8:59 p.m. UTC
This device depends on SDL which is deprecated.

Signed-off-by: Josh de Kock <josh@itanimul.li>
---
 Changelog                | 1 +
 doc/outdevs.texi         | 2 ++
 libavdevice/opengl_enc.c | 2 ++
 3 files changed, 5 insertions(+)

Comments

Carl Eugen Hoyos Sept. 10, 2016, 11:21 p.m. UTC | #1
2016-09-10 22:59 GMT+02:00 Josh de Kock <josh@itanimul.li>:

>  - deprecated sdl outdev
> +- deprecated opengl outdev

You can merge these lines.

Carl Eugen
diff mbox

Patch

diff --git a/Changelog b/Changelog
index f609a86..f02bf06 100644
--- a/Changelog
+++ b/Changelog
@@ -28,6 +28,7 @@  version <next>:
 - gblur filter
 - avgblur filter
 - deprecated sdl outdev
+- deprecated opengl outdev
 
 
 version 3.1:
diff --git a/doc/outdevs.texi b/doc/outdevs.texi
index cfcc176..34afa6f 100644
--- a/doc/outdevs.texi
+++ b/doc/outdevs.texi
@@ -214,6 +214,8 @@  See also @url{http://linux-fbdev.sourceforge.net/}, and fbset(1).
 @section opengl
 OpenGL output device.
 
+This device is deprecated and will be removed in a future release.
+
 To enable this output device you need to configure FFmpeg with @code{--enable-opengl}.
 
 This output device allows one to render to OpenGL context.
diff --git a/libavdevice/opengl_enc.c b/libavdevice/opengl_enc.c
index 1dbbb80..d611830 100644
--- a/libavdevice/opengl_enc.c
+++ b/libavdevice/opengl_enc.c
@@ -1064,6 +1064,8 @@  static av_cold int opengl_write_header(AVFormatContext *h)
     AVStream *st;
     int ret;
 
+    av_log(h, AV_LOG_WARNING, "The opengl output device is deprecated.\n");
+
     if (h->nb_streams != 1 ||
         h->streams[0]->codecpar->codec_type != AVMEDIA_TYPE_VIDEO ||
         h->streams[0]->codecpar->codec_id != AV_CODEC_ID_RAWVIDEO) {