[vlc-devel] [PATCH 4/6] decoder: remove always 1 stat parameter
Steve Lhomme
robux4 at ycbcr.xyz
Wed Sep 4 11:04:00 CEST 2019
---
src/input/decoder.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/input/decoder.c b/src/input/decoder.c
index c90827716eb..9b5d5b171ec 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -1034,7 +1034,7 @@ static int DecoderPlayVideo( struct decoder_owner *p_owner, picture_t *p_picture
}
static void DecoderUpdateStatVideo( struct decoder_owner *p_owner,
- unsigned decoded, unsigned lost )
+ unsigned lost )
{
unsigned displayed = 0;
@@ -1046,7 +1046,7 @@ static void DecoderUpdateStatVideo( struct decoder_owner *p_owner,
lost += vout_lost;
}
- decoder_Notify(p_owner, on_new_video_stats, decoded, lost, displayed);
+ decoder_Notify(p_owner, on_new_video_stats, 1, lost, displayed);
}
static void DecoderQueueVideo( decoder_t *p_dec, picture_t *p_pic )
@@ -1056,7 +1056,7 @@ static void DecoderQueueVideo( decoder_t *p_dec, picture_t *p_pic )
int success = DecoderPlayVideo( p_owner, p_pic );
- DecoderUpdateStatVideo( p_owner, 1, success != VLC_SUCCESS ? 1 : 0 );
+ DecoderUpdateStatVideo( p_owner, success != VLC_SUCCESS ? 1 : 0 );
}
static int thumbnailer_update_format( decoder_t *p_dec )
@@ -1158,7 +1158,7 @@ static int DecoderPlayAudio( struct decoder_owner *p_owner, block_t *p_audio )
}
static void DecoderUpdateStatAudio( struct decoder_owner *p_owner,
- unsigned decoded, unsigned lost )
+ unsigned lost )
{
unsigned played = 0;
@@ -1170,7 +1170,7 @@ static void DecoderUpdateStatAudio( struct decoder_owner *p_owner,
lost += aout_lost;
}
- decoder_Notify(p_owner, on_new_audio_stats, decoded, lost, played);
+ decoder_Notify(p_owner, on_new_audio_stats, 1, lost, played);
}
static void DecoderQueueAudio( decoder_t *p_dec, block_t *p_aout_buf )
@@ -1179,7 +1179,7 @@ static void DecoderQueueAudio( decoder_t *p_dec, block_t *p_aout_buf )
int success = DecoderPlayAudio( p_owner, p_aout_buf );
- DecoderUpdateStatAudio( p_owner, 1, success != VLC_SUCCESS ? 1 : 0 );
+ DecoderUpdateStatAudio( p_owner, success != VLC_SUCCESS ? 1 : 0 );
}
static void DecoderPlaySpu( struct decoder_owner *p_owner, subpicture_t *p_subpic )
--
2.17.1
More information about the vlc-devel
mailing list