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
98de4f40
Commit
98de4f40
authored
May 17, 2007
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* luaplaylist.c: replace printfs by msg_{Warn,Dbg}
parent
e61a1153
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
modules/demux/playlist/luaplaylist.c
modules/demux/playlist/luaplaylist.c
+12
-11
No files found.
modules/demux/playlist/luaplaylist.c
View file @
98de4f40
...
...
@@ -386,12 +386,12 @@ static int Demux( demux_t *p_demux )
if
(
lua_isstring
(
p_state
,
t
+
3
)
)
{
psz_url
=
lua_tostring
(
p_state
,
t
+
3
);
printf
(
"Path: %s
\n
"
,
psz_url
);
msg_Dbg
(
p_demux
,
"Path: %s
"
,
psz_url
);
lua_getfield
(
p_state
,
t
+
2
,
"name"
);
if
(
lua_isstring
(
p_state
,
t
+
4
)
)
{
psz_title
=
lua_tostring
(
p_state
,
t
+
4
);
printf
(
"Name: %s
\n
"
,
psz_title
);
msg_Dbg
(
p_demux
,
"Name: %s
"
,
psz_title
);
}
else
{
...
...
@@ -406,7 +406,7 @@ static int Demux( demux_t *p_demux )
if( lua_isstring( p_state, t+5 ) ) \
{ \
psz_title = lua_tostring( p_state, t+5 ); \
printf( #b ": %s\n", psz_title );
\
msg_Dbg( p_demux, #b ": %s", psz_title );
\
vlc_meta_Set ## b ( p_input->p_meta, psz_title ); \
} \
lua_pop( p_state, 1 );
/* pop a */
...
...
@@ -437,13 +437,14 @@ static int Demux( demux_t *p_demux )
}
else
{
printf
(
"Path isn't a string
\n
"
);
msg_Warn
(
p_demux
,
"Playlist item's path should be a string"
);
}
lua_pop
(
p_state
,
1
);
/* pop "path" */
}
else
{
printf
(
"This isn't a table !!!
\n
"
);
msg_Warn
(
p_demux
,
"Playlist item should be a table
"
);
}
lua_pop
(
p_state
,
1
);
/* pop the value, keep the key for
* the next lua_next() call */
...
...
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