Nicolas Chauvet 14 years ago
parent c39df1b884
commit 83d6374e0b

@ -0,0 +1,23 @@
commit b2dce9463216e55484918caa553604b44dfd3f11
Author: reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>
Date: Fri Apr 15 20:41:40 2011 +0000
Avoid crash when pausing an audio-only file.
git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@33268 b3059339-0415-0410-9bf9-f77b7e298cf2
diff --git a/mplayer.c b/mplayer.c
index 22d3baf..c946b4a 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -2539,7 +2539,8 @@ static void pause_loop(void)
}
}
#endif
- handle_udp_master(mpctx->sh_video->pts);
+ if (mpctx->sh_video)
+ handle_udp_master(mpctx->sh_video->pts);
usec_sleep(20000);
}
if (cmd && cmd->id == MP_CMD_PAUSE) {

@ -6,7 +6,7 @@
Name: mplayer
Version: 1.0
Release: 0.123.%{pre}%{?dist}
Release: 0.124.%{pre}%{?dist}
Summary: Movie player playing most video formats and DVDs
Group: Applications/Multimedia
@ -32,6 +32,8 @@ Patch8: %{name}-manlinks.patch
Patch14: %{name}-nodvdcss.patch
# use system FFmpeg libraries
Patch18: %{name}-ffmpeg.patch
# Upstream fix for http://bugzilla.mplayerhq.hu/show_bug.cgi?id=1904
Patch19: %{name}-pause.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: SDL-devel
@ -230,6 +232,7 @@ This package contains various scripts from MPlayer TOOLS directory.
%patch8 -p1 -b .manlinks
%patch14 -p1 -b .nodvdcss
%patch18 -p1 -b .ffmpeg
%patch19 -p1 -b .pause
doconv() {
iconv -f $1 -t $2 -o DOCS/man/$3/mplayer.1.utf8 DOCS/man/$3/mplayer.1 && \
@ -402,6 +405,9 @@ rm -rf $RPM_BUILD_ROOT
%{_datadir}/mplayer/*.fp
%changelog
* Thu Jun 16 2011 Ricky Zhou <ricky@rzhou.org> - 1.0-0.124.20110412svn
- Add upstream patch for pause crash.
* Tue Apr 12 2011 Dominik Mierzejewski <rpm at greysector.net> - 1.0-0.123.20110412svn
- 20110412 snapshot
- drop obsolete libvorbis patch

Loading…
Cancel
Save