[vlc-commits] commit: Dummy input: implement pause with infinite duration ( Rémi Denis-Courmont )
git at videolan.org
git at videolan.org
Wed Aug 4 18:04:05 CEST 2010
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Aug 4 19:03:36 2010 +0300| [d254e4ff8e8f396969d863f23f991e64d729065d] | committer: Rémi Denis-Courmont
Dummy input: implement pause with infinite duration
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d254e4ff8e8f396969d863f23f991e64d729065d
---
modules/misc/dummy/input.c | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/modules/misc/dummy/input.c b/modules/misc/dummy/input.c
index 4b74598..31b3c51 100644
--- a/modules/misc/dummy/input.c
+++ b/modules/misc/dummy/input.c
@@ -44,6 +44,13 @@ static int DemuxNoOp( demux_t *demux )
return 0;
}
+static int DemuxHold( demux_t *demux )
+{
+ (void) demux;
+ msleep( 10000 ); /* FIXME!!! */
+ return 1;
+}
+
struct demux_sys_t
{
mtime_t end;
@@ -149,6 +156,15 @@ nop:
return VLC_SUCCESS;
}
+ if( !strcasecmp( psz_name, "pause" ) )
+ {
+ msg_Info( p_demux, "command `pause'" );
+
+ p_demux->pf_demux = DemuxHold;
+ p_demux->pf_control = DemuxControl;
+ return VLC_SUCCESS;
+ }
+
/* Check for a "vlc://pause:***" command */
if( !strncasecmp( psz_name, "pause:", 6 ) )
{
More information about the vlc-commits
mailing list