[vlc-commits] mmal: clean internal variables
Steve Lhomme
git at videolan.org
Fri Jan 10 11:41:01 CET 2020
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Jan 10 11:22:27 2020 +0100| [2683e11ae144c62f125cfc22c6555f6a93ca71b1] | committer: Steve Lhomme
mmal: clean internal variables
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2683e11ae144c62f125cfc22c6555f6a93ca71b1
---
modules/hw/mmal/codec.c | 3 ---
modules/hw/mmal/vout.c | 6 +++---
2 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/modules/hw/mmal/codec.c b/modules/hw/mmal/codec.c
index 4571f1d39e..c31ba0cf35 100644
--- a/modules/hw/mmal/codec.c
+++ b/modules/hw/mmal/codec.c
@@ -247,7 +247,6 @@ static void CloseDecoder(vlc_object_t *obj)
{
decoder_t *dec = (decoder_t *)obj;
decoder_sys_t *sys = dec->p_sys;
- MMAL_BUFFER_HEADER_T *buffer;
if (!sys)
return;
@@ -515,8 +514,6 @@ static void fill_output_port(decoder_t *dec)
static void flush_decoder(decoder_t *dec)
{
decoder_sys_t *sys = dec->p_sys;
- MMAL_BUFFER_HEADER_T *buffer;
- MMAL_STATUS_T status;
msg_Dbg(dec, "Flushing decoder ports...");
mmal_port_flush(sys->output);
diff --git a/modules/hw/mmal/vout.c b/modules/hw/mmal/vout.c
index 02ecf60c0f..238e76b3a0 100644
--- a/modules/hw/mmal/vout.c
+++ b/modules/hw/mmal/vout.c
@@ -124,8 +124,8 @@ struct vout_display_sys_t {
unsigned display_width;
unsigned display_height;
- int i_frame_rate_base; /* cached framerate to detect changes for rate adjustment */
- int i_frame_rate;
+ unsigned int i_frame_rate_base; /* cached framerate to detect changes for rate adjustment */
+ unsigned int i_frame_rate;
int next_phase_check; /* lowpass for phase check frequency */
int phase_offset; /* currently applied offset to presentation time in ns */
@@ -189,7 +189,7 @@ static int Open(vout_display_t *vd, const vout_display_cfg_t *cfg,
MMAL_DISPLAYREGION_T display_region;
MMAL_STATUS_T status;
int ret = VLC_SUCCESS;
- unsigned i;
+ int i;
if (vout_display_cfg_IsWindowed(cfg))
return VLC_EGENERIC;
More information about the vlc-commits
mailing list