Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
49347bf4
Commit
49347bf4
authored
Apr 01, 2008
by
littlejohn
Browse files
test code cleanup
parent
1c5df1f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/control/testapi.c
View file @
49347bf4
...
...
@@ -406,7 +406,6 @@ static void test_media_list_player_pause_stop(const char** argv, int argc)
{
libvlc_instance_t
*
vlc
;
libvlc_media_t
*
md
;
libvlc_media_player_t
*
mi
;
libvlc_media_list_t
*
ml
;
libvlc_media_list_player_t
*
mlp
;
...
...
@@ -432,21 +431,18 @@ static void test_media_list_player_pause_stop(const char** argv, int argc)
libvlc_media_list_player_set_media_list
(
mlp
,
ml
,
&
ex
);
libvlc_media_list_player_play_item
(
mlp
,
md
,
&
ex
);
/* FIXME: Do something clever */
sleep
(
1
);
assert
(
libvlc_media_player_get_state
(
mi
,
&
ex
)
==
libvlc_Playing
);
sleep
(
1
);
// play is asynchronous
catch
();
libvlc_media_player_pause
(
mi
,
&
ex
);
assert
(
libvlc_media_player_get_state
(
mi
,
&
ex
)
==
libvlc_Paused
);
libvlc_media_list_player_pause
(
mlp
,
&
ex
);
catch
();
libvlc_media_player_stop
(
m
i
,
&
ex
);
libvlc_media_
list_
player_stop
(
m
lp
,
&
ex
);
catch
();
libvlc_media_player_release
(
mi
);
libvlc_media_release
(
md
);
libvlc_media_list_player_release
(
mlp
);
catch
();
libvlc_release
(
vlc
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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