[vlc-commits] stream: add STREAM_SET_PAUSE_STATE control

Rémi Denis-Courmont git at videolan.org
Tue Apr 16 18:06:49 CEST 2013


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Apr 16 19:04:36 2013 +0300| [e3ff321573fb04d111a81b6ba71cfa0f06fad45c] | committer: Rémi Denis-Courmont

stream: add STREAM_SET_PAUSE_STATE control

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

 include/vlc_stream.h |    1 +
 src/input/stream.c   |    3 +++
 2 files changed, 4 insertions(+)

diff --git a/include/vlc_stream.h b/include/vlc_stream.h
index 24dc14a..8281837 100644
--- a/include/vlc_stream.h
+++ b/include/vlc_stream.h
@@ -108,6 +108,7 @@ enum stream_query_e
 
     /* */
     STREAM_GET_CONTENT_TYPE,    /**< arg1= char **         res=can fail */
+    STREAM_SET_PAUSE_STATE = 0x200, /**< arg1= bool        res=can fail */
 
     /* XXX only data read through stream_Read/Block will be recorded */
     STREAM_SET_RECORD_STATE,     /**< arg1=bool, arg2=const char *psz_ext (if arg1 is true)  res=can fail */
diff --git a/src/input/stream.c b/src/input/stream.c
index 4bb1295..16965ba 100644
--- a/src/input/stream.c
+++ b/src/input/stream.c
@@ -616,6 +616,9 @@ static int AStreamControl( stream_t *s, int i_query, va_list args )
         case STREAM_GET_CONTENT_TYPE:
             return access_vaControl( p_access, ACCESS_GET_CONTENT_TYPE, args );
 
+        case STREAM_SET_PAUSE_STATE:
+            return access_vaControl( p_access, ACCESS_SET_PAUSE_STATE, args );
+
         case STREAM_SET_RECORD_STATE:
         default:
             msg_Err( s, "invalid stream_vaControl query=0x%x", i_query );



More information about the vlc-commits mailing list