Commit 36ead72d authored by Christophe Massiot's avatar Christophe Massiot

* Fixed dual-mono handling of MPEG audio.

* rc.c: fixed a warning.
parent c750b4b0
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* trivial.c : trivial channel mixer plug-in (drops unwanted channels) * trivial.c : trivial channel mixer plug-in (drops unwanted channels)
***************************************************************************** *****************************************************************************
* Copyright (C) 2002 VideoLAN * Copyright (C) 2002 VideoLAN
* $Id: trivial.c,v 1.8 2002/12/04 21:48:02 gbazin Exp $ * $Id: trivial.c,v 1.9 2003/01/14 14:51:02 massiot Exp $
* *
* Authors: Christophe Massiot <massiot@via.ecp.fr> * Authors: Christophe Massiot <massiot@via.ecp.fr>
* *
...@@ -113,7 +113,10 @@ static void DoWork( aout_instance_t * p_aout, aout_filter_t * p_filter, ...@@ -113,7 +113,10 @@ static void DoWork( aout_instance_t * p_aout, aout_filter_t * p_filter,
s32 * p_dest = (s32 *)p_out_buf->p_buffer; s32 * p_dest = (s32 *)p_out_buf->p_buffer;
s32 * p_src = (s32 *)p_in_buf->p_buffer; s32 * p_src = (s32 *)p_in_buf->p_buffer;
if ( p_filter->output.i_original_channels & AOUT_CHAN_DUALMONO ) if ( (p_filter->output.i_original_channels & AOUT_CHAN_PHYSMASK)
!= (p_filter->input.i_original_channels & AOUT_CHAN_PHYSMASK)
&& (p_filter->input.i_original_channels & AOUT_CHAN_PHYSMASK)
== (AOUT_CHAN_LEFT | AOUT_CHAN_RIGHT) )
{ {
int i; int i;
/* This is a bit special. */ /* This is a bit special. */
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* rc.c : remote control stdin/stdout plugin for vlc * rc.c : remote control stdin/stdout plugin for vlc
***************************************************************************** *****************************************************************************
* Copyright (C) 2001 VideoLAN * Copyright (C) 2001 VideoLAN
* $Id: rc.c,v 1.18 2003/01/14 01:30:09 sigmunau Exp $ * $Id: rc.c,v 1.19 2003/01/14 14:51:02 massiot Exp $
* *
* Authors: Peter Surda <shurdeek@panorama.sth.ac.at> * Authors: Peter Surda <shurdeek@panorama.sth.ac.at>
* *
...@@ -435,8 +435,8 @@ static void Run( intf_thread_t *p_intf ) ...@@ -435,8 +435,8 @@ static void Run( intf_thread_t *p_intf )
} }
} }
static int Input( vlc_object_t *p_this, char const *psz_cmd, static int Input( vlc_object_t *p_this, char const *psz_cmd,
vlc_value_t oldval, vlc_value_t newval, void *p_data ) vlc_value_t oldval, vlc_value_t newval, void *p_data )
{ {
input_thread_t * p_input; input_thread_t * p_input;
...@@ -555,12 +555,12 @@ static int Input( vlc_object_t *p_this, char const *psz_cmd, ...@@ -555,12 +555,12 @@ static int Input( vlc_object_t *p_this, char const *psz_cmd,
if( ( i_title > 0 ) && ( i_title <= if( ( i_title > 0 ) && ( i_title <=
p_input->stream.p_selected_area->i_part_nb ) ) p_input->stream.p_selected_area->i_part_nb ) )
{ {
p_input->stream.p_selected_area->i_part = i_title; p_input->stream.p_selected_area->i_part = i_title;
vlc_mutex_unlock( &p_input->stream.stream_lock ); vlc_mutex_unlock( &p_input->stream.stream_lock );
input_ChangeArea( p_input, input_ChangeArea( p_input,
(input_area_t*)p_input->stream.pp_areas[i_title] ); (input_area_t*)p_input->stream.pp_areas[i_title] );
input_SetStatus( p_input, INPUT_STATUS_PLAY ); input_SetStatus( p_input, INPUT_STATUS_PLAY );
vlc_mutex_lock( &p_input->stream.stream_lock ); vlc_mutex_lock( &p_input->stream.stream_lock );
} }
vlc_mutex_unlock( &p_input->stream.stream_lock ); vlc_mutex_unlock( &p_input->stream.stream_lock );
...@@ -568,6 +568,8 @@ static int Input( vlc_object_t *p_this, char const *psz_cmd, ...@@ -568,6 +568,8 @@ static int Input( vlc_object_t *p_this, char const *psz_cmd,
return VLC_SUCCESS; return VLC_SUCCESS;
} }
/* Never reached. */
return VLC_EGENERIC;
} }
static int Playlist( vlc_object_t *p_this, char const *psz_cmd, static int Playlist( vlc_object_t *p_this, char const *psz_cmd,
......
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