Accepting request 355075 from home:alois:branches:multimedia:apps

Backported patch to fix problem with smplayer.

OBS-URL: https://build.opensuse.org/request/show/355075
OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/mpv?expand=0&rev=32
This commit is contained in:
Martin Pluskal 2016-01-20 21:33:40 +00:00 committed by Git OBS Bridge
parent 7dce2929fb
commit 6b8ab24a8b
3 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,13 @@
Index: mpv-0.15.0/player/command.c
===================================================================
--- mpv-0.15.0.orig/player/command.c
+++ mpv-0.15.0/player/command.c
@@ -2438,7 +2438,7 @@ static int mp_property_video_codec(void
{
MPContext *mpctx = ctx;
struct track *track = mpctx->current_track[0][STREAM_VIDEO];
- const char *c = track->d_video ? track->d_video->decoder_desc : NULL;
+ const char *c = track && track->d_video ? track->d_video->decoder_desc : NULL;
return m_property_strdup_ro(action, arg, c);
}

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Jan 20 20:07:35 UTC 2016 - aloisio@gmx.com
- Backported commit 5053f4c to fix hang problem with smplayer
(bug ref. #2729)
-------------------------------------------------------------------
Mon Jan 18 19:52:34 UTC 2016 - idonmez@suse.com

View File

@ -34,6 +34,7 @@ Source: http://github.com/mpv-player/%{name}/archive/v%{version}.tar.gz#
Source1: http://ftp.waf.io/pub/release/waf-%{_waf_ver}
Source2: %{name}.changes
Source3: %{name}.png
Patch0: %{name}-0.15.0_fix_NULL_ptr.patch
BuildRequires: hicolor-icon-theme
BuildRequires: ladspa-devel
BuildRequires: libjpeg-devel
@ -145,6 +146,7 @@ features.
%prep
%setup -q
%patch0 -p1
# As we downloaded specific waf version we need to put and prepare it in place.
cp -f %{SOURCE1} waf