diff mbox

[FFmpeg-devel] lavd/sdl2: rename user-facing names to sdl

Message ID 20160925115524.31948-1-josh@itanimul.li
State Superseded
Headers show

Commit Message

Josh Dekker Sept. 25, 2016, 11:55 a.m. UTC
Signed-off-by: Josh de Kock <josh@itanimul.li>
---
 configure          | 2 +-
 libavdevice/sdl2.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Comments

Josh Dekker Sept. 25, 2016, 11:56 a.m. UTC | #1
On 25/09/2016 12:55, Josh de Kock wrote:
> Signed-off-by: Josh de Kock <josh@itanimul.li>
> ---
>  configure          | 2 +-
>  libavdevice/sdl2.c | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/configure b/configure
> index f593191..4cfd840 100755
> --- a/configure
> +++ b/configure
> @@ -291,7 +291,7 @@ External library support:
>                             if gnutls is not used [no]
>    --disable-schannel       disable SChannel SSP, needed for TLS support on
>                             Windows if openssl and gnutls are not used [autodetect]
> -  --disable-sdl2           disable sdl2 [autodetect]
> +  --disable-sdl            disable sdl2 [autodetect]
>    --disable-securetransport disable Secure Transport, needed for TLS support
>                             on OSX if openssl and gnutls are not used [autodetect]
>    --enable-x11grab         enable X11 grabbing (legacy) [no]
> diff --git a/libavdevice/sdl2.c b/libavdevice/sdl2.c
> index 217ccc0..efc587c 100644
> --- a/libavdevice/sdl2.c
> +++ b/libavdevice/sdl2.c
> @@ -352,7 +352,7 @@ static const AVClass sdl2_class = {
>  };
>
>  AVOutputFormat ff_sdl2_muxer = {
> -    .name           = "sdl2",
> +    .name           = "sdl",
>      .long_name      = NULL_IF_CONFIG_SMALL("SDL2 output device"),
>      .priv_data_size = sizeof(SDLContext),
>      .audio_codec    = AV_CODEC_ID_NONE,
>
err. Forgot to do all the changes.
Clément Bœsch Sept. 25, 2016, noon UTC | #2
On Sun, Sep 25, 2016 at 12:55:24PM +0100, Josh de Kock wrote:
> Signed-off-by: Josh de Kock <josh@itanimul.li>
> ---
>  configure          | 2 +-
>  libavdevice/sdl2.c | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/configure b/configure
> index f593191..4cfd840 100755
> --- a/configure
> +++ b/configure
> @@ -291,7 +291,7 @@ External library support:
>                             if gnutls is not used [no]
>    --disable-schannel       disable SChannel SSP, needed for TLS support on
>                             Windows if openssl and gnutls are not used [autodetect]
> -  --disable-sdl2           disable sdl2 [autodetect]
> +  --disable-sdl            disable sdl2 [autodetect]
>    --disable-securetransport disable Secure Transport, needed for TLS support
>                             on OSX if openssl and gnutls are not used [autodetect]
>    --enable-x11grab         enable X11 grabbing (legacy) [no]
> diff --git a/libavdevice/sdl2.c b/libavdevice/sdl2.c
> index 217ccc0..efc587c 100644
> --- a/libavdevice/sdl2.c
> +++ b/libavdevice/sdl2.c
> @@ -352,7 +352,7 @@ static const AVClass sdl2_class = {
>  };
>  
>  AVOutputFormat ff_sdl2_muxer = {
> -    .name           = "sdl2",
> +    .name           = "sdl",
>      .long_name      = NULL_IF_CONFIG_SMALL("SDL2 output device"),
>      .priv_data_size = sizeof(SDLContext),
>      .audio_codec    = AV_CODEC_ID_NONE,

IIRC you can have aliases; with name = "sdl,sdl2". We do that for
v4l2,video4linux2 iirc
diff mbox

Patch

diff --git a/configure b/configure
index f593191..4cfd840 100755
--- a/configure
+++ b/configure
@@ -291,7 +291,7 @@  External library support:
                            if gnutls is not used [no]
   --disable-schannel       disable SChannel SSP, needed for TLS support on
                            Windows if openssl and gnutls are not used [autodetect]
-  --disable-sdl2           disable sdl2 [autodetect]
+  --disable-sdl            disable sdl2 [autodetect]
   --disable-securetransport disable Secure Transport, needed for TLS support
                            on OSX if openssl and gnutls are not used [autodetect]
   --enable-x11grab         enable X11 grabbing (legacy) [no]
diff --git a/libavdevice/sdl2.c b/libavdevice/sdl2.c
index 217ccc0..efc587c 100644
--- a/libavdevice/sdl2.c
+++ b/libavdevice/sdl2.c
@@ -352,7 +352,7 @@  static const AVClass sdl2_class = {
 };
 
 AVOutputFormat ff_sdl2_muxer = {
-    .name           = "sdl2",
+    .name           = "sdl",
     .long_name      = NULL_IF_CONFIG_SMALL("SDL2 output device"),
     .priv_data_size = sizeof(SDLContext),
     .audio_codec    = AV_CODEC_ID_NONE,