[vlc-commits] decomp: pause is unimplemented (although possible), pace works
Rémi Denis-Courmont
git at videolan.org
Tue Apr 16 19:20:00 CEST 2013
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Apr 16 20:08:34 2013 +0300| [2c1731e78a2cc78ffebb478166f445dfcfdb2171] | committer: Rémi Denis-Courmont
decomp: pause is unimplemented (although possible), pace works
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2c1731e78a2cc78ffebb478166f445dfcfdb2171
---
modules/stream_filter/decomp.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/modules/stream_filter/decomp.c b/modules/stream_filter/decomp.c
index 1619414..82bb5e9 100644
--- a/modules/stream_filter/decomp.c
+++ b/modules/stream_filter/decomp.c
@@ -76,6 +76,7 @@ struct stream_sys_t
vlc_thread_t thread;
pid_t pid;
int write_fd, read_fd;
+ bool can_pace;
};
extern char **environ;
@@ -244,8 +245,12 @@ static int Control (stream_t *stream, int query, va_list args)
{
case STREAM_CAN_SEEK:
case STREAM_CAN_FASTSEEK:
+ case STREAM_CAN_PAUSE: /* TODO: support pause */
*(va_arg (args, bool *)) = false;
break;
+ case STREAM_CAN_CONTROL_PACE:
+ *(va_arg (args, bool *)) = p_sys->can_pace;
+ break;
case STREAM_GET_POSITION:
*(va_arg (args, uint64_t *)) = p_sys->offset;
break;
@@ -275,6 +280,8 @@ static int Open (stream_t *stream, const char *path)
p_sys->peeked = NULL;
p_sys->offset = 0;
p_sys->pid = -1;
+ stream_Control (stream->p_source, STREAM_CAN_CONTROL_PACE,
+ &p_sys->can_pace);
/* I am not a big fan of the pyramid style, but I cannot think of anything
* better here. There are too many failure cases. */
More information about the vlc-commits
mailing list