stream: make `GetPtsDelay` impossible to fail
The documentation and code-usage state that streams cannot have that control fail, only some types of demuxes can. From the demuxer documentation: > /** Retrieves the PTS delay (roughly the default buffer duration). > * Can fail only if synchronous and <b>not</b> an access-demuxer. The > * underlying input stream then determines the PTS delay. > * > * arg1= vlc_tick_t * */ > DEMUX_GET_PTS_DELAY = 0x101, From the stream documentation: > STREAM_GET_PTS_DELAY = 0x101,/**< arg1= vlc_tick_t* res=cannot fail */ This patch reflects this behavior in the stream API.
Showing
- include/vlc_stream.h 6 additions, 3 deletionsinclude/vlc_stream.h
- modules/stream_filter/decomp.c 1 addition, 1 deletionmodules/stream_filter/decomp.c
- modules/stream_filter/prefetch.c 1 addition, 1 deletionmodules/stream_filter/prefetch.c
- src/input/demux.c 2 additions, 2 deletionssrc/input/demux.c
- src/input/stream.c 8 additions, 4 deletionssrc/input/stream.c
Loading
Please register or sign in to comment