commit:     c0ecbdc63848f418471175376d55ee041894a019
Author:     Ilya Tumaykin <itumaykin <AT> gmail <DOT> com>
AuthorDate: Mon Mar 14 16:26:13 2016 +0000
Commit:     Ian Delaney <idella4 <AT> gentoo <DOT> org>
CommitDate: Mon Mar 14 18:20:05 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c0ecbdc6

media-video/mpv: revbump to 0.16.0-r2 to backport another regression fix

Backport one more fix [1] for two regressions reported upstream [2,3].
Hopefully it's the final revbump unless something critical pops up.

[1]: https://github.com/mpv-player/mpv/commit/c13c9945
[2]: https://github.com/mpv-player/mpv/issues/2920
[3]: https://github.com/mpv-player/mpv/issues/2929

Closes: https://github.com/gentoo/gentoo/pull/1046

Package-Manager: portage-2.2.28

 ...-0.16.0-add-missing-audio-reconfig-events.patch | 33 ++++++++++++++++++++++
 .../{mpv-0.16.0-r1.ebuild => mpv-0.16.0-r2.ebuild} |  1 +
 2 files changed, 34 insertions(+)

diff --git 
a/media-video/mpv/files/mpv-0.16.0-add-missing-audio-reconfig-events.patch 
b/media-video/mpv/files/mpv-0.16.0-add-missing-audio-reconfig-events.patch
new file mode 100644
index 0000000..b01e126
--- /dev/null
+++ b/media-video/mpv/files/mpv-0.16.0-add-missing-audio-reconfig-events.patch
@@ -0,0 +1,33 @@
+commit c13c9945bf84817ee1dd2d65e58660fb38e23a7f
+Author: wm4 <wm4@nowhere>
+Date:   Sun Mar 13 15:52:17 2016 +0100
+
+    player: add missing audio reconfig events
+    
+    This also takes care of sending the required property change
+    notifications.
+    
+    Fixes #2929 and maybe fixes #2920.
+
+diff --git a/player/audio.c b/player/audio.c
+index f17587a..3a2c60b 100644
+--- a/player/audio.c
++++ b/player/audio.c
+@@ -134,6 +134,8 @@ static int recreate_audio_filters(struct MPContext *mpctx)
+
+     mixer_reinit_audio(mpctx->mixer, mpctx->ao, afs);
+
++    mp_notify(mpctx, MPV_EVENT_AUDIO_RECONFIG, NULL);
++
+     return 0;
+
+ fail:
+@@ -368,6 +370,8 @@ static void reinit_audio_filters_and_output(struct 
MPContext *mpctx)
+
+     update_playback_speed(mpctx);
+
++    mp_notify(mpctx, MPV_EVENT_AUDIO_RECONFIG, NULL);
++
+     return;
+
+ init_error:

diff --git a/media-video/mpv/mpv-0.16.0-r1.ebuild 
b/media-video/mpv/mpv-0.16.0-r2.ebuild
similarity index 99%
rename from media-video/mpv/mpv-0.16.0-r1.ebuild
rename to media-video/mpv/mpv-0.16.0-r2.ebuild
index ca8e4a1..9afd780 100644
--- a/media-video/mpv/mpv-0.16.0-r1.ebuild
+++ b/media-video/mpv/mpv-0.16.0-r2.ebuild
@@ -127,6 +127,7 @@ PATCHES=(
        "${FILESDIR}/${P}-set-correct-seekable-flags.patch"
        "${FILESDIR}/${P}-fix-bitrate-calculation.patch"
        "${FILESDIR}/${P}-fix-coverart-decoding.patch"
+       "${FILESDIR}/${P}-add-missing-audio-reconfig-events.patch"
 )
 
 pkg_pretend() {

Reply via email to