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
7d581e9e
Commit
7d581e9e
authored
Apr 28, 2009
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mod: reindent.
parent
9d97dc43
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
11 deletions
+15
-11
modules/demux/mod.c
modules/demux/mod.c
+15
-11
No files found.
modules/demux/mod.c
View file @
7d581e9e
...
...
@@ -368,10 +368,11 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
{
vlc_meta_t
*
p_meta
=
(
vlc_meta_t
*
)
va_arg
(
args
,
vlc_meta_t
*
);
unsigned
i_num_samples
=
ModPlug_NumSamples
(
p_sys
->
f
),
i_num_instruments
=
ModPlug_NumInstruments
(
p_sys
->
f
);
i_num_instruments
=
ModPlug_NumInstruments
(
p_sys
->
f
);
unsigned
i_num_patterns
=
ModPlug_NumPatterns
(
p_sys
->
f
),
i_num_channels
=
ModPlug_NumChannels
(
p_sys
->
f
);
// unsigned modType = ModPlug_GetModuleType( p_sys->f );
i_num_channels
=
ModPlug_NumChannels
(
p_sys
->
f
);
// unsigned modType = ModPlug_GetModuleType( p_sys->f );
char
psz_temp
[
2048
];
/* 32 * 240 max, but only need start */
char
*
psz_module_info
,
*
psz_instrument_info
;
unsigned
i_temp_index
=
0
;
...
...
@@ -379,19 +380,22 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
if
(
psz_name
&&
*
psz_name
)
vlc_meta_SetTitle
(
p_meta
,
psz_name
);
/* Comment field from artist - not in every type of MOD */
psz_name
=
ModPlug_GetMessage
(
p_sys
->
f
);
if
(
psz_name
&&
*
psz_name
)
vlc_meta_SetDescription
(
p_meta
,
psz_name
);
/* Comment field from artist - not in every type of MOD */
psz_name
=
ModPlug_GetMessage
(
p_sys
->
f
);
if
(
psz_name
&&
*
psz_name
)
vlc_meta_SetDescription
(
p_meta
,
psz_name
);
/* Instruments only in newer MODs - so don't show if 0 */
if
(
asprintf
(
&
psz_instrument_info
,
", %i Instruments"
,
i_num_instruments
)
)
{
if
(
asprintf
(
&
psz_instrument_info
,
", %i Instruments"
,
i_num_instruments
)
)
{
if
(
asprintf
(
&
psz_module_info
,
"%i Channels, %i Patterns
\n
"
"%i Samples%s
\n
"
,
i_num_channels
,
i_num_patterns
,
i_num_samples
,
(
i_num_instruments
?
psz_instrument_info
:
""
)
))
i_num_channels
,
i_num_patterns
,
i_num_samples
,
(
i_num_instruments
?
psz_instrument_info
:
""
)
))
{
vlc_meta_AddExtra
(
p_meta
,
"Module Information"
,
psz_module_info
);
vlc_meta_AddExtra
(
p_meta
,
"Module Information"
,
psz_module_info
);
free
(
psz_module_info
);
}
...
...
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