From a19f197cb14a0ceec4bc1fe977502b8f8ab8f94e Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 13 Oct 2012 17:09:35 +0200 Subject: core: show quvi page title in window title, clean up libquvi handling Clean up handling of libquvi (which resolves URLs of streaming sites into URLs to the actual media playable by mpv). Move the code out of open.c to quvi.c, and invoke it explicitly from mplayer.c, instead of trying to resolve every filename passed to open_stream(). This allows easily passing metadata from the quvi context to the frontend. Expose QUVIPROP_PAGETITLE as "media-title" property, and use that instead of "filename" for the mplayer window title. (For YouTube, this is the video title.) It's cleaner too. Handle a potential reliability issue: check quvi_getprop return values. Since open.c contains barely anything but the open_stream() stub, move that to stream.c and delete open.c. --- defaultopts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'defaultopts.c') diff --git a/defaultopts.c b/defaultopts.c index c844cd66d8..072bf606d1 100644 --- a/defaultopts.c +++ b/defaultopts.c @@ -14,7 +14,7 @@ void set_default_mplayer_options(struct MPOpts *opts) .softvol = SOFTVOL_AUTO, .softvol_max = 200, .ao_buffersize = -1, - .vo_wintitle = "mpv - ${filename}", + .vo_wintitle = "mpv - ${media-title}", .monitor_pixel_aspect = 1.0, .vo_panscanrange = 1.0, .cursor_autohide_delay = 1000, -- cgit v1.2.3