[vlc-commits] bluray: notify BD-J on playback rate change

Petri Hintukainen git at videolan.org
Wed May 18 09:43:29 CEST 2016


vlc | branch: master | Petri Hintukainen <phintuka at gmail.com> | Tue May 17 14:29:02 2016 +0300| [dd4fa9da64e89f5580673612ea4de25db2d6fc96] | committer: Petri Hintukainen

bluray: notify BD-J on playback rate change

Do not allow pausing playback when playlist is not playing

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=dd4fa9da64e89f5580673612ea4de25db2d6fc96
---

 modules/access/bluray.c |    9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/modules/access/bluray.c b/modules/access/bluray.c
index 95ca783..0693451 100644
--- a/modules/access/bluray.c
+++ b/modules/access/bluray.c
@@ -1808,8 +1808,15 @@ static int blurayControl(demux_t *p_demux, int query, va_list args)
         break;
 
     case DEMUX_SET_PAUSE_STATE:
-        /* Nothing to do */
+    {
+#ifdef BLURAY_RATE_NORMAL
+        bool b_paused = (bool)va_arg(args, int);
+        if (bd_set_rate(p_sys->bluray, BLURAY_RATE_NORMAL * (!b_paused)) < 0) {
+            return VLC_EGENERIC;
+        }
+#endif
         break;
+    }
     case DEMUX_SET_ES:
     {
         int i_id = (int)va_arg(args, int);



More information about the vlc-commits mailing list