[FFmpeg-devel] [PATCH]Give ffplay users a hint why SDL_init may have failed

Stefano Sabatini stefano.sabatini-lala at poste.it
Wed Jul 6 23:44:25 CEST 2011


On date Wednesday 2011-07-06 23:31:22 +0200, Carl Eugen Hoyos encoded:
> Hi!
> 
> I will push attached if nobody objects.
> 
> Thank you, Carl Eugen

> diff --git a/ffplay.c b/ffplay.c
> index a8be6be..40e0cc1 100644
> --- a/ffplay.c
> +++ b/ffplay.c
> @@ -3027,6 +3027,7 @@ int main(int argc, char **argv)
>  #endif
>      if (SDL_Init (flags)) {
>          fprintf(stderr, "Could not initialize SDL - %s\n", SDL_GetError());
> +        fprintf(stderr, "(Did you set the DISPLAY variable?)\n");
>          exit(1);
>      } 

No objections from me. Did you experience this issue? Also maybe we
could add a more explicit explanation in the ffplay manual.
-- 
FFmpeg = Fundamentalist and Freak Moronic Peaceful Enlightening Gadget


More information about the ffmpeg-devel mailing list