Summary(pl.UTF-8): Odtwarzacz filmów oparty na projektach MPlayer i mplayer2
Name: mpv
Version: 0.32.0
-Release: 1
+Release: 2
License: GPL v2+
Group: Applications/Multimedia
#Source0Download: http://github.com/mpv-player/mpv/releases
Source1: %{name}.conf
Patch0: %{name}-lua.patch
Patch1: %{name}-shaderc.patch
+Patch2: rtsp.patch
URL: http://mpv.io/
BuildRequires: Mesa-libEGL-devel >= 9.0.0
BuildRequires: Mesa-libgbm-devel
%setup -q
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%build
%waf configure \
--- /dev/null
+--- mpv-0.32.0/demux/demux_lavf.c.org 2020-02-19 22:38:35.401192350 +0100
++++ mpv-0.32.0/demux/demux_lavf.c 2020-02-19 22:38:21.064094924 +0100
+@@ -1069,6 +1069,10 @@ static int demux_open_lavf(demuxer_t *de
+ demuxer->seekable = false;
+ #endif
+
++ if (matches_avinputformat_name(priv, "rtsp")
++ && priv->avfc->duration == AV_NOPTS_VALUE)
++ demuxer->seekable = false;
++
+ demuxer->is_network |= priv->format_hack.is_network;
+ demuxer->seekable &= !priv->format_hack.no_seek;
+