Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
2a0f8bf1
Commit
2a0f8bf1
authored
Feb 25, 2008
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
control/testapi.c: Nicer log() output.
parent
3a90c05e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
src/control/testapi.c
src/control/testapi.c
+5
-4
No files found.
src/control/testapi.c
View file @
2a0f8bf1
...
@@ -211,19 +211,19 @@ static void test_events (const char ** argv, int argc)
...
@@ -211,19 +211,19 @@ static void test_events (const char ** argv, int argc)
em
=
libvlc_media_instance_event_manager
(
mi
,
&
ex
);
em
=
libvlc_media_instance_event_manager
(
mi
,
&
ex
);
log
(
"Testing attaching to Media Instance
\n
"
);
log
(
"
+
Testing attaching to Media Instance
\n
"
);
for
(
i
=
0
;
i
<
mi_events_len
;
i
++
)
{
for
(
i
=
0
;
i
<
mi_events_len
;
i
++
)
{
libvlc_event_attach
(
em
,
mi_events
[
i
],
test_events_dummy_callback
,
&
callback_was_called
,
&
ex
);
libvlc_event_attach
(
em
,
mi_events
[
i
],
test_events_dummy_callback
,
&
callback_was_called
,
&
ex
);
catch
();
catch
();
}
}
log
(
"Testing event reception
\n
"
);
log
(
"
+
Testing event reception
\n
"
);
for
(
i
=
0
;
i
<
mi_events_len
;
i
++
)
for
(
i
=
0
;
i
<
mi_events_len
;
i
++
)
test_event_type_reception
(
em
,
mi_events
[
i
],
&
callback_was_called
);
test_event_type_reception
(
em
,
mi_events
[
i
],
&
callback_was_called
);
log
(
"Testing event detaching while in the event callback
\n
"
);
log
(
"
+
Testing event detaching while in the event callback
\n
"
);
libvlc_event_t
event
;
libvlc_event_t
event
;
event
.
type
=
mi_events
[
mi_events_len
-
1
];
event
.
type
=
mi_events
[
mi_events_len
-
1
];
...
@@ -245,7 +245,8 @@ static void test_events (const char ** argv, int argc)
...
@@ -245,7 +245,8 @@ static void test_events (const char ** argv, int argc)
libvlc_event_detach
(
em
,
mi_events
[
i
],
test_events_callback_and_detach
,
&
callback_was_called
,
&
ex
);
libvlc_event_detach
(
em
,
mi_events
[
i
],
test_events_callback_and_detach
,
&
callback_was_called
,
&
ex
);
catch
();
catch
();
/* Detach the other events */
log
(
"+ Testing regular detach()
\n
"
);
for
(
i
=
0
;
i
<
mi_events_len
-
1
;
i
++
)
{
for
(
i
=
0
;
i
<
mi_events_len
-
1
;
i
++
)
{
libvlc_event_detach
(
em
,
mi_events
[
i
],
test_events_dummy_callback
,
&
callback_was_called
,
&
ex
);
libvlc_event_detach
(
em
,
mi_events
[
i
],
test_events_dummy_callback
,
&
callback_was_called
,
&
ex
);
catch
();
catch
();
...
...
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