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
200a3bc0
Commit
200a3bc0
authored
Mar 29, 2004
by
Rocky Bernstein
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Populate stream information.
parent
1e0610a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
1 deletion
+21
-1
modules/codec/mpeg_audio.c
modules/codec/mpeg_audio.c
+21
-1
No files found.
modules/codec/mpeg_audio.c
View file @
200a3bc0
...
...
@@ -2,7 +2,7 @@
* mpeg_audio.c: parse MPEG audio sync info and packetize the stream
*****************************************************************************
* Copyright (C) 2001-2003 VideoLAN
* $Id
: mpeg_audio.c,v 1.27 2004/03/02 16:44:21 hartman Exp
$
* $Id$
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Eric Petit <titer@videolan.org>
...
...
@@ -463,6 +463,26 @@ static uint8_t *GetOutBuffer( decoder_t *p_dec, void **pp_out_buffer )
if
(
p_dec
->
fmt_out
.
audio
.
i_rate
!=
p_sys
->
i_rate
)
{
#define TITLE_MAX 30
input_info_category_t
*
p_cat
;
char
psz_streamid
[
TITLE_MAX
];
int
i_es_id
=
p_dec
->
fmt_out
.
i_id
;
input_thread_t
*
p_input
=
vlc_object_find
(
p_dec
,
VLC_OBJECT_INPUT
,
FIND_PARENT
);
snprintf
(
psz_streamid
,
TITLE_MAX
,
"%s%04x"
,
_
(
"Stream "
),
i_es_id
);
p_cat
=
input_InfoCategory
(
p_input
,
psz_streamid
);
#if 1
/* We should be finding this stream, but we aren't. */
input_AddInfo
(
p_cat
,
_
(
"Type"
),
"%s"
,
_
(
"audio"
)
);
input_AddInfo
(
p_cat
,
_
(
"Description"
),
"%s"
,
_
(
"MPEG audio"
)
);
#endif
input_AddInfo
(
p_cat
,
_
(
"Sample Rate"
),
"%d"
,
p_sys
->
i_rate
);
input_AddInfo
(
p_cat
,
_
(
"Bit Rate"
),
"%d"
,
p_sys
->
i_bit_rate
);
input_AddInfo
(
p_cat
,
_
(
"Channel(s)"
),
"%d"
,
p_sys
->
i_channels
);
msg_Info
(
p_dec
,
"MPGA channels:%d samplerate:%d bitrate:%d"
,
p_sys
->
i_channels
,
p_sys
->
i_rate
,
p_sys
->
i_bit_rate
);
...
...
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