Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
1b75ee7b
Commit
1b75ee7b
authored
Oct 29, 2006
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* don't use nested functions please. --- fixes compilation on OSX, which was broken in [17281]
parent
ff6d1b16
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
31 deletions
+32
-31
src/control/vlm.c
src/control/vlm.c
+32
-31
No files found.
src/control/vlm.c
View file @
1b75ee7b
...
...
@@ -365,44 +365,45 @@ LIBVLC_VLM_GET_MEDIA_ATTRIBUTE( seekable, int, Bool, 0);
#undef LIBVLC_VLM_GET_MEDIA_ATTRIBUTE
char
*
libvlc_vlm_show_media
(
libvlc_instance_t
*
p_instance
,
char
*
psz_name
,
libvlc_exception_t
*
p_exception
)
{
char
*
recurse_answer
(
char
*
psz_prefix
,
vlm_message_t
*
p_answer
)
{
char
*
psz_childprefix
;
char
*
psz_response
=
""
;
char
*
response_tmp
;
int
i
;
vlm_message_t
*
aw_child
,
**
paw_child
;
asprintf
(
&
psz_childprefix
,
"%s%s."
,
psz_prefix
,
p_answer
->
psz_name
);
if
(
p_answer
->
i_child
)
/* local function to be used in libvlc_vlm_show_media only */
char
*
recurse_answer
(
char
*
psz_prefix
,
vlm_message_t
*
p_answer
)
{
char
*
psz_childprefix
;
char
*
psz_response
=
""
;
char
*
response_tmp
;
int
i
;
vlm_message_t
*
aw_child
,
**
paw_child
;
asprintf
(
&
psz_childprefix
,
"%s%s."
,
psz_prefix
,
p_answer
->
psz_name
);
if
(
p_answer
->
i_child
)
{
paw_child
=
p_answer
->
child
;
aw_child
=
*
(
paw_child
);
for
(
i
=
0
;
i
<
p_answer
->
i_child
;
i
++
)
{
paw_child
=
p_answer
->
child
;
aw_child
=
*
(
paw_child
);
for
(
i
=
0
;
i
<
p_answer
->
i_child
;
i
++
)
asprintf
(
&
response_tmp
,
"%s%s%s:%s
\n
"
,
psz_response
,
psz_prefix
,
aw_child
->
psz_name
,
aw_child
->
psz_value
);
free
(
psz_response
);
psz_response
=
response_tmp
;
if
(
aw_child
->
i_child
)
{
asprintf
(
&
response_tmp
,
"%s%s%s:%s
\n
"
,
psz_response
,
psz_prefix
,
aw_child
->
psz_name
,
aw_child
->
psz_value
);
asprintf
(
&
response_tmp
,
"%s%s"
,
psz_response
,
recurse_answer
(
psz_childprefix
,
aw_child
));
free
(
psz_response
);
psz_response
=
response_tmp
;
if
(
aw_child
->
i_child
)
{
asprintf
(
&
response_tmp
,
"%s%s"
,
psz_response
,
recurse_answer
(
psz_childprefix
,
aw_child
));
free
(
psz_response
);
psz_response
=
response_tmp
;
}
paw_child
++
;
aw_child
=
*
(
paw_child
);
}
paw_child
++
;
aw_child
=
*
(
paw_child
);
}
free
(
psz_childprefix
);
return
psz_response
;
}
free
(
psz_childprefix
);
return
psz_response
;
}
char
*
libvlc_vlm_show_media
(
libvlc_instance_t
*
p_instance
,
char
*
psz_name
,
libvlc_exception_t
*
p_exception
)
{
char
*
psz_message
;
vlm_message_t
*
answer
;
char
*
psz_response
;
...
...
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