Commit 9db6aaeb authored by Clément Bœsch's avatar Clément Bœsch

ffplay: use format title metadata to set window caption.

parent b8edf916
......@@ -2725,6 +2725,9 @@ static int read_thread(void *arg)
is->max_frame_duration = (ic->iformat->flags & AVFMT_TS_DISCONT) ? 10.0 : 3600.0;
if (!window_title && (t = av_dict_get(ic->metadata, "title", NULL, 0)))
window_title = av_asprintf("%s - %s", t->value, input_filename);
/* if seeking requested, we execute it */
if (start_time != AV_NOPTS_VALUE) {
int64_t timestamp;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment