Patch by Robert Krüger "krueger ET signal7 DOT de".
Originally committed as revision 22588 to svn://svn.ffmpeg.org/ffmpeg/trunk
Disable graphical display.
@item -f @var{fmt}
Force format.
Disable graphical display.
@item -f @var{fmt}
Force format.
+@item -window_title @var{title}
+Set window title (default is the input filename).
@end table
@section Advanced options
@end table
@section Advanced options
/* options specified by the user */
static AVInputFormat *file_iformat;
static const char *input_filename;
/* options specified by the user */
static AVInputFormat *file_iformat;
static const char *input_filename;
+static const char *window_title;
static int fs_screen_width;
static int fs_screen_height;
static int screen_width = 0;
static int fs_screen_width;
static int fs_screen_height;
static int screen_width = 0;
fprintf(stderr, "SDL: could not set video mode - exiting\n");
return -1;
}
fprintf(stderr, "SDL: could not set video mode - exiting\n");
return -1;
}
- SDL_WM_SetCaption("FFplay", "FFplay");
+ if (!window_title)
+ window_title = input_filename;
+ SDL_WM_SetCaption(window_title, window_title);
is->width = screen->w;
is->height = screen->h;
is->width = screen->w;
is->height = screen->h;
{ "threads", HAS_ARG | OPT_FUNC2 | OPT_EXPERT, {(void*)opt_thread_count}, "thread count", "count" },
{ "autoexit", OPT_BOOL | OPT_EXPERT, {(void*)&autoexit}, "exit at the end", "" },
{ "framedrop", OPT_BOOL | OPT_EXPERT, {(void*)&framedrop}, "drop frames when cpu is too slow", "" },
{ "threads", HAS_ARG | OPT_FUNC2 | OPT_EXPERT, {(void*)opt_thread_count}, "thread count", "count" },
{ "autoexit", OPT_BOOL | OPT_EXPERT, {(void*)&autoexit}, "exit at the end", "" },
{ "framedrop", OPT_BOOL | OPT_EXPERT, {(void*)&framedrop}, "drop frames when cpu is too slow", "" },
+ { "window_title", OPT_STRING | HAS_ARG, {(void*)&window_title}, "set window title", "window title" },
#if CONFIG_AVFILTER
{ "vfilters", OPT_STRING | HAS_ARG, {(void*)&vfilters}, "video filters", "filter list" },
#endif
#if CONFIG_AVFILTER
{ "vfilters", OPT_STRING | HAS_ARG, {(void*)&vfilters}, "video filters", "filter list" },
#endif