[vlc-commits] access: srt: use define for variables

Francois Cartegnie git at videolan.org
Mon Aug 17 14:13:42 CEST 2020


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Aug 17 11:41:29 2020 +0200| [179579703bd600f3760e3aa61794250cfad96b81] | committer: Francois Cartegnie

access: srt: use define for variables

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=179579703bd600f3760e3aa61794250cfad96b81
---

 modules/access/srt.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/access/srt.c b/modules/access/srt.c
index ab52ba4fcc..499a300196 100644
--- a/modules/access/srt.c
+++ b/modules/access/srt.c
@@ -220,8 +220,8 @@ out:
 static block_t *BlockSRT(stream_t *p_stream, bool *restrict eof)
 {
     stream_sys_t *p_sys = p_stream->p_sys;
-    int i_chunk_size = var_InheritInteger( p_stream, "chunk-size" );
-    int i_poll_timeout = var_InheritInteger( p_stream, "poll-timeout" );
+    int i_chunk_size = var_InheritInteger( p_stream, SRT_PARAM_CHUNK_SIZE );
+    int i_poll_timeout = var_InheritInteger( p_stream, SRT_PARAM_POLL_TIMEOUT );
     /* SRT doesn't have a concept of EOF for live streams. */
     VLC_UNUSED(eof);
 



More information about the vlc-commits mailing list