commit c914af0724060da10147f4c4ff71e85174f18cf2
Author: Arkadiusz Miśkiewicz <[email protected]>
Date:   Wed Feb 19 22:43:49 2020 +0100

    - rel 2; add no seeking for rtsp hack until better solution is found; 
https://github.com/mpv-player/mpv/issues/7472

 mpv.spec   |  4 +++-
 rtsp.patch | 13 +++++++++++++
 2 files changed, 16 insertions(+), 1 deletion(-)
---
diff --git a/mpv.spec b/mpv.spec
index 72f224e..48c5687 100644
--- 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
index 0000000..da32337
--- /dev/null
+++ b/rtsp.patch
@@ -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;
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/mpv.git/commitdiff/c914af0724060da10147f4c4ff71e85174f18cf2

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to