Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
1ae199c0
Commit
1ae199c0
authored
Jun 06, 2005
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/stream_out/transcode.c: Bail out when no audio filter is available.
parent
7271a7fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
4 deletions
+15
-4
modules/stream_out/transcode.c
modules/stream_out/transcode.c
+15
-4
No files found.
modules/stream_out/transcode.c
View file @
1ae199c0
...
...
@@ -1123,7 +1123,7 @@ static int transcode_audio_new( sout_stream_t *p_stream,
/* Final checks to see if conversions were successful */
if
(
fmt_last
.
i_codec
!=
id
->
p_encoder
->
fmt_in
.
i_codec
)
{
msg_
Dbg
(
p_stream
,
"no audio filter found (%4.4s->%4.4s)"
,
msg_
Err
(
p_stream
,
"no audio filter found (%4.4s->%4.4s)"
,
(
char
*
)
&
fmt_last
.
i_codec
,
(
char
*
)
&
id
->
p_encoder
->
fmt_in
.
i_codec
);
transcode_audio_close
(
p_stream
,
id
);
...
...
@@ -1132,10 +1132,11 @@ static int transcode_audio_new( sout_stream_t *p_stream,
if
(
fmt_last
.
audio
.
i_channels
!=
id
->
p_encoder
->
fmt_in
.
audio
.
i_channels
)
{
msg_
Dbg
(
p_stream
,
"no audio filter found for mixing from"
msg_
Err
(
p_stream
,
"no audio filter found for mixing from"
" %i to %i channels"
,
fmt_last
.
audio
.
i_channels
,
id
->
p_encoder
->
fmt_in
.
audio
.
i_channels
);
#if 0
/* FIXME : this might work, but only if the encoder is restarted */
id->p_encoder->fmt_in.audio.i_channels = fmt_last.audio.i_channels;
id->p_encoder->fmt_out.audio.i_channels = fmt_last.audio.i_channels;
...
...
@@ -1145,15 +1146,25 @@ static int transcode_audio_new( sout_stream_t *p_stream,
id->p_encoder->fmt_out.audio.i_physical_channels =
id->p_encoder->fmt_out.audio.i_original_channels =
fmt_last.audio.i_physical_channels;
#else
transcode_audio_close
(
p_stream
,
id
);
return
VLC_EGENERIC
;
#endif
}
if
(
fmt_last
.
audio
.
i_rate
!=
id
->
p_encoder
->
fmt_in
.
audio
.
i_rate
)
{
msg_
Dbg
(
p_stream
,
"no audio filter found for resampling from"
msg_
Err
(
p_stream
,
"no audio filter found for resampling from"
" %iHz to %iHz"
,
fmt_last
.
audio
.
i_rate
,
id
->
p_encoder
->
fmt_in
.
audio
.
i_rate
);
#if 0
/* FIXME : this might work, but only if the encoder is restarted */
id->p_encoder->fmt_in.audio.i_rate = fmt_last.audio.i_rate;
id->p_encoder->fmt_out.audio.i_rate = fmt_last.audio.i_rate;
#else
transcode_audio_close
(
p_stream
,
id
);
return
VLC_EGENERIC
;
#endif
}
/* FIXME: Hack for mp3 transcoding support */
...
...
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