]> git.pld-linux.org Git - packages/mpv.git/commitdiff
- rel 2; add no seeking for rtsp hack until better solution is found; https://github... auto/th/mpv-0.32.0-2
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Wed, 19 Feb 2020 21:43:49 +0000 (22:43 +0100)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Wed, 19 Feb 2020 21:43:49 +0000 (22:43 +0100)
mpv.spec
rtsp.patch [new file with mode: 0644]

index 72f224e25ca27b22f94f4c905a0ab214b89060ac..48c5687e082e2aa08d7f384c7cb623d12661b25b 100644 (file)
--- a/mpv.spec
+++ b/mpv.spec
@@ -2,7 +2,7 @@ Summary:        Movie player based on MPlayer and mplayer2
 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
@@ -11,6 +11,7 @@ Source0:      http://github.com/mpv-player/mpv/archive/v%{version}/%{name}-%{version}
 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
@@ -154,6 +155,7 @@ Dopełnianie parametrów mpv dla powłoki ZSH.
 %setup -q
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %build
 %waf configure \
diff --git a/rtsp.patch b/rtsp.patch
new file mode 100644 (file)
index 0000000..da32337
--- /dev/null
@@ -0,0 +1,13 @@
+--- 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;
This page took 0.169548 seconds and 4 git commands to generate.