[vlc-commits] modules: clean calls to date_Set with hardcoded values
Steve Lhomme
git at videolan.org
Fri May 4 12:15:28 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed May 2 16:18:26 2018 +0200| [10bfd4034a24c10c8faca8d129e2bc49bbe6f645] | committer: Rémi Denis-Courmont
modules: clean calls to date_Set with hardcoded values
Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=10bfd4034a24c10c8faca8d129e2bc49bbe6f645
---
modules/packetizer/mlp.c | 4 ++--
modules/visualization/goom.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/packetizer/mlp.c b/modules/packetizer/mlp.c
index 00441636b5..660a23f01f 100644
--- a/modules/packetizer/mlp.c
+++ b/modules/packetizer/mlp.c
@@ -260,7 +260,7 @@ static void Flush( decoder_t *p_dec )
p_sys->i_state = STATE_NOSYNC;
p_sys->b_discontinuity = true;
block_BytestreamEmpty( &p_sys->bytestream );
- date_Set( &p_sys->end_date, 0 );
+ date_Set( &p_sys->end_date, VLC_TS_INVALID );
}
static block_t *Packetize( decoder_t *p_dec, block_t **pp_block )
@@ -485,7 +485,7 @@ static int Open( vlc_object_t *p_this )
/* */
p_sys->i_state = STATE_NOSYNC;
- date_Set( &p_sys->end_date, 0 );
+ date_Set( &p_sys->end_date, VLC_TS_INVALID );
block_BytestreamInit( &p_sys->bytestream );
p_sys->b_mlp = false;
diff --git a/modules/visualization/goom.c b/modules/visualization/goom.c
index 326d1cb1a9..d66e64162b 100644
--- a/modules/visualization/goom.c
+++ b/modules/visualization/goom.c
@@ -154,7 +154,7 @@ static int Open( vlc_object_t *p_this )
p_thread->i_blocks = 0;
date_Init( &p_thread->date, p_filter->fmt_in.audio.i_rate, 1 );
- date_Set( &p_thread->date, 0 );
+ date_Set( &p_thread->date, VLC_TS_0 );
p_thread->i_channels = aout_FormatNbChannels( &p_filter->fmt_in.audio );
if( vlc_clone( &p_thread->thread,
More information about the vlc-commits
mailing list