[vlc-commits] smem: implement SOUT_STREAM_IS_SYNCHRONOUS
Rémi Denis-Courmont
git at videolan.org
Sun Oct 11 14:18:49 CEST 2020
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Oct 10 14:30:03 2020 +0300| [8cd685fb96acbb057944d3d9ed4e8e3dc3d175c5] | committer: Rémi Denis-Courmont
smem: implement SOUT_STREAM_IS_SYNCHRONOUS
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8cd685fb96acbb057944d3d9ed4e8e3dc3d175c5
---
modules/stream_out/smem.c | 21 ++++++++++++++++++---
1 file changed, 18 insertions(+), 3 deletions(-)
diff --git a/modules/stream_out/smem.c b/modules/stream_out/smem.c
index 646206ae3c..23323e39e4 100644
--- a/modules/stream_out/smem.c
+++ b/modules/stream_out/smem.c
@@ -189,8 +189,25 @@ void AudioPostrenderDefaultCallback( void* p_audio_data, uint8_t* p_pcm_buffer,
VLC_UNUSED( bits_per_sample ); VLC_UNUSED( size ); VLC_UNUSED( pts );
}
+static int Control(sout_stream_t *stream, int query, va_list args)
+{
+ sout_stream_sys_t *sys = stream->p_sys;
+
+ switch (query)
+ {
+ case SOUT_STREAM_IS_SYNCHRONOUS:
+ *va_arg(args, bool *) = sys->time_sync;
+ break;
+
+ default:
+ return VLC_EGENERIC;
+ }
+
+ return VLC_SUCCESS;
+}
+
static const struct sout_stream_operations ops = {
- Add, Del, Send, NULL, NULL,
+ Add, Del, Send, Control, NULL,
};
/*****************************************************************************
@@ -238,8 +255,6 @@ static int Open( vlc_object_t *p_this )
/* Setting stream out module callbacks */
p_stream->ops = &ops;
- p_stream->pace_nocontrol = p_sys->time_sync;
-
return VLC_SUCCESS;
}
More information about the vlc-commits
mailing list