Commit 77eea9b3 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Kill various warnings

parent fc0b2f11
...@@ -772,6 +772,8 @@ static void ESNew( demux_t *p_demux, int i_id, int i_lang ) ...@@ -772,6 +772,8 @@ static void ESNew( demux_t *p_demux, int i_id, int i_lang )
static int DvdReadSetArea( demux_t *p_demux, int i_title, int i_chapter, static int DvdReadSetArea( demux_t *p_demux, int i_title, int i_chapter,
int i_angle ) int i_angle )
{ {
VLC_UNUSED( i_angle );
demux_sys_t *p_sys = p_demux->p_sys; demux_sys_t *p_sys = p_demux->p_sys;
int pgc_id = 0, pgn = 0; int pgc_id = 0, pgn = 0;
int i; int i;
...@@ -1323,19 +1325,19 @@ static void DvdReadFindCell( demux_t *p_demux ) ...@@ -1323,19 +1325,19 @@ static void DvdReadFindCell( demux_t *p_demux )
*****************************************************************************/ *****************************************************************************/
static void DemuxTitles( demux_t *p_demux, int *pi_angle ) static void DemuxTitles( demux_t *p_demux, int *pi_angle )
{ {
VLC_UNUSED( pi_angle );
demux_sys_t *p_sys = p_demux->p_sys; demux_sys_t *p_sys = p_demux->p_sys;
input_title_t *t; input_title_t *t;
seekpoint_t *s; seekpoint_t *s;
int32_t i_titles;
int i;
/* Find out number of titles/chapters */ /* Find out number of titles/chapters */
#define tt_srpt p_sys->p_vmg_file->tt_srpt #define tt_srpt p_sys->p_vmg_file->tt_srpt
i_titles = tt_srpt->nr_of_srpts; int32_t i_titles = tt_srpt->nr_of_srpts;
msg_Dbg( p_demux, "number of titles: %d", i_titles ); msg_Dbg( p_demux, "number of titles: %d", i_titles );
for( i = 0; i < i_titles; i++ ) for( int i = 0; i < i_titles; i++ )
{ {
int32_t i_chapters = 0; int32_t i_chapters = 0;
int j; int j;
......
...@@ -233,8 +233,10 @@ static inline void sanitize( float * f_value ) ...@@ -233,8 +233,10 @@ static inline void sanitize( float * f_value )
static void DoWork( aout_instance_t *p_aout, aout_filter_t *p_filter, static void DoWork( aout_instance_t *p_aout, aout_filter_t *p_filter,
aout_buffer_t *p_in_buf, aout_buffer_t *p_out_buf ) aout_buffer_t *p_in_buf, aout_buffer_t *p_out_buf )
{ {
VLC_UNUSED( p_aout );
struct aout_filter_sys_t *p_sys = p_filter->p_sys; struct aout_filter_sys_t *p_sys = p_filter->p_sys;
int i, i_chan; int i_chan;
int i_samples = p_in_buf->i_nb_samples; /* Gives the number of samples */ int i_samples = p_in_buf->i_nb_samples; /* Gives the number of samples */
int i_maxOffset = (int)floor( p_sys->f_sweepDepth * p_sys->i_sampleRate / int i_maxOffset = (int)floor( p_sys->f_sweepDepth * p_sys->i_sampleRate /
1000 ); /*maximum number of samples to offset in buffer */ 1000 ); /*maximum number of samples to offset in buffer */
...@@ -247,7 +249,7 @@ static void DoWork( aout_instance_t *p_aout, aout_filter_t *p_filter, ...@@ -247,7 +249,7 @@ static void DoWork( aout_instance_t *p_aout, aout_filter_t *p_filter,
p_out_buf->i_nb_bytes = p_in_buf->i_nb_bytes; p_out_buf->i_nb_bytes = p_in_buf->i_nb_bytes;
/* Process each sample */ /* Process each sample */
for( i = 0; i < i_samples ; i++ ) for( int i = 0; i < i_samples ; i++ )
{ {
/* Use a sine function as a oscillator wave. TODO */ /* Use a sine function as a oscillator wave. TODO */
/* f_offset = sinf( ( p_sys->i_cumulative ) * p_sys->f_sinMultiplier ) * /* f_offset = sinf( ( p_sys->i_cumulative ) * p_sys->f_sinMultiplier ) *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment