Commit d254e4ff authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Dummy input: implement pause with infinite duration

parent 45f7ca3d
......@@ -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 ) )
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment