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
2e3d1d91
Commit
2e3d1d91
authored
Apr 28, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed coding style in mod demuxer.
parent
ba4c4c19
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
15 deletions
+16
-15
modules/demux/mod.c
modules/demux/mod.c
+16
-15
No files found.
modules/demux/mod.c
View file @
2e3d1d91
...
@@ -382,14 +382,15 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
...
@@ -382,14 +382,15 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
/* Comment field from artist - not in every type of MOD */
/* Comment field from artist - not in every type of MOD */
psz_name
=
ModPlug_GetMessage
(
p_sys
->
f
);
psz_name
=
ModPlug_GetMessage
(
p_sys
->
f
);
if
(
psz_name
&&
*
psz_name
)
if
(
psz_name
&&
*
psz_name
)
vlc_meta_SetDescription
(
p_meta
,
psz_name
);
vlc_meta_SetDescription
(
p_meta
,
psz_name
);
/* Instruments only in newer MODs - so don't show if 0 */
/* Instruments only in newer MODs - so don't show if 0 */
if
(
asprintf
(
&
psz_instrument_info
,
", %i Instruments"
,
if
(
asprintf
(
&
psz_instrument_info
,
", %i Instruments"
,
i_num_instruments
)
)
i_num_instruments
)
)
{
{
if
(
asprintf
(
&
psz_module_info
,
"%i Channels, %i Patterns
\n
"
if
(
asprintf
(
&
psz_module_info
,
"%i Channels, %i Patterns
\n
"
"%i Samples%s
\n
"
,
"%i Samples%s
\n
"
,
i_num_channels
,
i_num_patterns
,
i_num_samples
,
i_num_channels
,
i_num_patterns
,
i_num_samples
,
(
i_num_instruments
?
psz_instrument_info
:
""
)
))
(
i_num_instruments
?
psz_instrument_info
:
""
)
))
...
@@ -403,10 +404,10 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
...
@@ -403,10 +404,10 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
}
}
/* Make list of instruments (XM, IT, etc) */
/* Make list of instruments (XM, IT, etc) */
if
(
i_num_instruments
)
if
(
i_num_instruments
)
{
{
i_temp_index
=
0
;
i_temp_index
=
0
;
for
(
int
i
=
0
;
i
<
i_num_instruments
&&
i_temp_index
<
sizeof
(
psz_temp
);
i
++
)
for
(
int
i
=
0
;
i
<
i_num_instruments
&&
i_temp_index
<
sizeof
(
psz_temp
);
i
++
)
{
{
char
lBuffer
[
33
];
char
lBuffer
[
33
];
ModPlug_InstrumentName
(
p_sys
->
f
,
i
,
lBuffer
);
ModPlug_InstrumentName
(
p_sys
->
f
,
i
,
lBuffer
);
...
@@ -418,12 +419,12 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
...
@@ -418,12 +419,12 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
}
}
/* Make list of samples */
/* Make list of samples */
for
(
int
i
=
0
;
i
<
i_num_samples
&&
i_temp_index
<
sizeof
(
psz_temp
);
i
++
)
for
(
int
i
=
0
;
i
<
i_num_samples
&&
i_temp_index
<
sizeof
(
psz_temp
);
i
++
)
{
{
char
lB
uffer
[
33
];
char
psz_b
uffer
[
33
];
ModPlug_SampleName
(
p_sys
->
f
,
i
,
lB
uffer
);
ModPlug_SampleName
(
p_sys
->
f
,
i
,
psz_b
uffer
);
if
(
!
lB
uffer
[
0
]
)
continue
;
// don't add empty fields.
if
(
!
psz_b
uffer
[
0
]
)
continue
;
// don't add empty fields.
i_temp_index
+=
snprintf
(
&
psz_temp
[
i_temp_index
],
sizeof
(
psz_temp
)
-
i_temp_index
,
"%s
\n
"
,
lB
uffer
);
i_temp_index
+=
snprintf
(
&
psz_temp
[
i_temp_index
],
sizeof
(
psz_temp
)
-
i_temp_index
,
"%s
\n
"
,
psz_b
uffer
);
}
}
vlc_meta_AddExtra
(
p_meta
,
"Samples"
,
psz_temp
);
vlc_meta_AddExtra
(
p_meta
,
"Samples"
,
psz_temp
);
...
...
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