[vlc-commits] modules: set 0 for items which value is actually 0
Steve Lhomme
git at videolan.org
Mon Jul 30 07:16:00 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Jul 26 09:46:16 2018 +0200| [ccd4241414e973af890c28e0205b4b95d6a1cd71] | committer: Steve Lhomme
modules: set 0 for items which value is actually 0
And it should not be set explicitly to INPUT_DURATION_NONE which is for nodes
and directories.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ccd4241414e973af890c28e0205b4b95d6a1cd71
---
modules/demux/playlist/sgimb.c | 2 +-
test/libvlc/media.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/demux/playlist/sgimb.c b/modules/demux/playlist/sgimb.c
index e1a772a1a9..bb85bbdcb2 100644
--- a/modules/demux/playlist/sgimb.c
+++ b/modules/demux/playlist/sgimb.c
@@ -171,7 +171,7 @@ int Import_SGIMB( vlc_object_t * p_this )
p_sys->psz_mcast_ip = NULL;
p_sys->i_mcast_port = 0;
p_sys->i_packet_size = 0;
- p_sys->i_duration = INPUT_DURATION_ZERO;
+ p_sys->i_duration = 0;
p_sys->i_port = 0;
p_sys->i_sid = 0;
p_sys->b_rtsp_kasenna = false;
diff --git a/test/libvlc/media.c b/test/libvlc/media.c
index dd6d10c2ac..4de30c7187 100644
--- a/test/libvlc/media.c
+++ b/test/libvlc/media.c
@@ -148,7 +148,7 @@ static void test_input_metadata_timeout(libvlc_instance_t *vlc, int timeout,
char psz_fd_uri[strlen("fd://") + 11];
sprintf(psz_fd_uri, "fd://%u", (unsigned) p_pipe[1]);
- input_item_t *p_item = input_item_NewFile(psz_fd_uri, "test timeout", INPUT_DURATION_ZERO,
+ input_item_t *p_item = input_item_NewFile(psz_fd_uri, "test timeout", 0,
ITEM_LOCAL);
assert(p_item != NULL);
More information about the vlc-commits
mailing list