core: clean up libquvi handling, add media_title property
commit6d30d04263c99f38fad8cdb5460a4e2e2bc9b779
authorwm4 <wm4@nowhere>
Sat, 13 Oct 2012 15:09:35 +0000 (13 17:09 +0200)
committerUoti Urpala <uau@mplayer2.org>
Fri, 16 Nov 2012 07:25:10 +0000 (16 09:25 +0200)
tree39645acbdaac79f1af0328894a53ead522d824dc
parentec5050119fbd120593c2e75456b88e00a3e1581b
core: clean up libquvi handling, add media_title property

Clean up handling of libquvi (which is used to resolve stream site
URLs into URLs to the underlying media files that can be played
directly). Before, the stream layer tried to do the URL mapping for
every opened stream. Move the code from open.c to quvi.c, and invoke
it explicitly from mplayer.c for the main playback file only.

This allows easily passing metadata from the quvi context to the
frontend. Expose QUVIPROP_PAGETITLE as new "media_title" property (for
YouTube, this is the video title). If libquvi is not used, this is
equal to the old "filename" property. Add "stream_path" property which
is the real played filename/URL after possible libquvi mapping (in
contrast, the old "path" property is the filename/URL that was
originally given to the player).

Handle a potential reliability issue: check quvi_getprop return
values.

Since there was barely anything left in open.c but the open_stream()
stub, move that to stream.c and delete open.c.
DOCS/tech/slave.txt
Makefile
command.c
mp_core.h
mplayer.c
stream/open.c [deleted file]
stream/quvi.c [new file with mode: 0644]
stream/stream.c
stream/stream.h