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
81a45bed
Commit
81a45bed
authored
Apr 06, 2008
by
Filippo Carone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
logger_iterator_next simplied
parent
7573989d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
24 deletions
+23
-24
src/control/log.c
src/control/log.c
+23
-24
No files found.
src/control/log.c
View file @
81a45bed
...
@@ -158,33 +158,32 @@ int libvlc_log_iterator_has_next( const libvlc_log_iterator_t *p_iter, libvlc_ex
...
@@ -158,33 +158,32 @@ int libvlc_log_iterator_has_next( const libvlc_log_iterator_t *p_iter, libvlc_ex
}
}
libvlc_log_message_t
*
libvlc_log_iterator_next
(
libvlc_log_iterator_t
*
p_iter
,
libvlc_log_message_t
*
libvlc_log_iterator_next
(
libvlc_log_iterator_t
*
p_iter
,
struct
libvlc_log_message_t
*
buffer
,
libvlc_log_message_t
*
buffer
,
libvlc_exception_t
*
p_e
)
libvlc_exception_t
*
p_e
)
{
{
if
(
p_iter
)
int
i_pos
;
{
if
(
buffer
&&
(
sizeof
(
struct
libvlc_log_message_t
)
==
buffer
->
sizeof_msg
)
)
if
(
!
p_iter
)
{
RAISENULL
(
"Invalid log iterator!"
);
int
i_pos
=
p_iter
->
i_pos
;
if
(
!
buffer
)
if
(
i_pos
!=
p_iter
->
i_end
)
{
msg_item_t
*
msg
;
vlc_mutex_lock
(
p_iter
->
p_messages
->
p_lock
);
msg
=
p_iter
->
p_messages
->
p_msg
+
i_pos
;
buffer
->
i_severity
=
msg
->
i_type
;
buffer
->
psz_type
=
msg
->
psz_object_type
;
buffer
->
psz_name
=
msg
->
psz_module
;
buffer
->
psz_header
=
msg
->
psz_header
;
buffer
->
psz_message
=
msg
->
psz_msg
;
p_iter
->
i_pos
=
++
i_pos
%
VLC_MSG_QSIZE
;
vlc_mutex_unlock
(
p_iter
->
p_messages
->
p_lock
);
return
buffer
;
}
RAISENULL
(
"No more messages"
);
}
RAISENULL
(
"Invalid message buffer!"
);
RAISENULL
(
"Invalid message buffer!"
);
i_pos
=
p_iter
->
i_pos
;
if
(
i_pos
!=
p_iter
->
i_end
)
{
msg_item_t
*
msg
;
vlc_mutex_lock
(
p_iter
->
p_messages
->
p_lock
);
msg
=
p_iter
->
p_messages
->
p_msg
+
i_pos
;
buffer
->
i_severity
=
msg
->
i_type
;
buffer
->
psz_type
=
msg
->
psz_object_type
;
buffer
->
psz_name
=
msg
->
psz_module
;
buffer
->
psz_header
=
msg
->
psz_header
;
buffer
->
psz_message
=
msg
->
psz_msg
;
p_iter
->
i_pos
=
++
i_pos
%
VLC_MSG_QSIZE
;
vlc_mutex_unlock
(
p_iter
->
p_messages
->
p_lock
);
return
buffer
;
}
}
RAISENULL
(
"
Invalid log iterator!
"
);
RAISENULL
(
"
No more messages
"
);
}
}
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