Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
20090257
Commit
20090257
authored
Jan 21, 2003
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed two major bugs in the audio output, triggering segfault when going
to mono mode, and probably at some other places.
parent
1d385240
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
src/audio_output/filters.c
src/audio_output/filters.c
+4
-1
src/audio_output/intf.c
src/audio_output/intf.c
+2
-1
No files found.
src/audio_output/filters.c
View file @
20090257
...
...
@@ -2,7 +2,7 @@
* filters.c : audio output filters management
*****************************************************************************
* Copyright (C) 2002 VideoLAN
* $Id: filters.c,v 1.1
6 2002/12/10 21:55:01 gbazin
Exp $
* $Id: filters.c,v 1.1
7 2003/01/21 10:29:12 massiot
Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
...
...
@@ -97,6 +97,7 @@ static int SplitConversion( const audio_sample_format_t * p_input_format,
if
(
!
b_format
||
!
b_channels
)
{
p_middle_format
->
i_rate
=
p_input_format
->
i_rate
;
aout_FormatPrepare
(
p_middle_format
);
return
1
;
}
...
...
@@ -105,11 +106,13 @@ static int SplitConversion( const audio_sample_format_t * p_input_format,
=
p_input_format
->
i_physical_channels
;
p_middle_format
->
i_original_channels
=
p_input_format
->
i_original_channels
;
aout_FormatPrepare
(
p_middle_format
);
return
1
;
}
/* i_nb_conversion == 3 */
p_middle_format
->
i_rate
=
p_input_format
->
i_rate
;
aout_FormatPrepare
(
p_middle_format
);
return
2
;
}
...
...
src/audio_output/intf.c
View file @
20090257
...
...
@@ -2,7 +2,7 @@
* intf.c : audio output API towards the interface modules
*****************************************************************************
* Copyright (C) 2002 VideoLAN
* $Id: intf.c,v 1.1
4 2003/01/16 14:08:39
massiot Exp $
* $Id: intf.c,v 1.1
5 2003/01/21 10:29:12
massiot Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
...
...
@@ -416,6 +416,7 @@ int aout_Restart( aout_instance_t * p_aout )
aout_input_t
*
p_input
=
p_aout
->
pp_inputs
[
i
];
b_error
|=
aout_InputNew
(
p_aout
,
p_input
);
p_input
->
b_changed
=
1
;
vlc_mutex_unlock
(
&
p_input
->
lock
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment