[vlc-commits] demux: adaptive: add missing pause state control

Francois Cartegnie git at videolan.org
Sun May 15 22:27:13 CEST 2016


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri May 13 16:45:19 2016 +0200| [7f8b4ae5e3b28647789832f9cd8fc120abfdaab3] | committer: Francois Cartegnie

demux: adaptive: add missing pause state control

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

 modules/demux/adaptive/PlaylistManager.cpp |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/demux/adaptive/PlaylistManager.cpp b/modules/demux/adaptive/PlaylistManager.cpp
index 5a2a41f..efee909 100644
--- a/modules/demux/adaptive/PlaylistManager.cpp
+++ b/modules/demux/adaptive/PlaylistManager.cpp
@@ -390,6 +390,9 @@ int PlaylistManager::doControl(int i_query, va_list args)
             *(va_arg (args, bool *)) = !playlist->isLive();
             break;
 
+        case DEMUX_SET_PAUSE_STATE:
+            return (playlist->isLive()) ? VLC_EGENERIC : VLC_SUCCESS;
+
         case DEMUX_GET_TIME:
             *(va_arg (args, int64_t *)) = i_nzpcr;
             break;



More information about the vlc-commits mailing list