Skip to content
Snippets Groups Projects
Commit b405dc1e authored by Alaric Senat's avatar Alaric Senat Committed by Rémi Denis-Courmont
Browse files

sout: add SetPCR API wrapper

parent 240cf3ca
No related branches found
No related tags found
1 merge request!1394sout: implement a SetPCR callback in stream output
......@@ -201,6 +201,7 @@ VLC_API void *sout_StreamIdAdd(sout_stream_t *s, const es_format_t *fmt);
VLC_API void sout_StreamIdDel(sout_stream_t *s, void *id);
VLC_API int sout_StreamIdSend( sout_stream_t *s, void *id, block_t *b);
VLC_API void sout_StreamFlush(sout_stream_t *s, void *id);
VLC_API void sout_StreamSetPCR(sout_stream_t *s, vlc_tick_t pcr);
VLC_API int sout_StreamControlVa(sout_stream_t *s, int i_query, va_list args);
static inline int sout_StreamControl( sout_stream_t *s, int i_query, ... )
......
......@@ -356,6 +356,7 @@ sout_StreamIdAdd
sout_StreamIdDel
sout_StreamIdSend
sout_StreamFlush
sout_StreamSetPCR
sout_StreamControlVa
spu_Create
spu_Destroy
......
......@@ -728,6 +728,16 @@ void sout_StreamFlush(sout_stream_t *s, void *id)
}
}
void sout_StreamSetPCR(sout_stream_t *s, vlc_tick_t pcr)
{
if (s->ops->set_pcr != NULL)
{
sout_StreamLock(s);
s->ops->set_pcr(s, pcr);
sout_StreamUnlock(s);
}
}
int sout_StreamControlVa(sout_stream_t *s, int i_query, va_list args)
{
int val = VLC_EGENERIC;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment