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
af6a893a
Commit
af6a893a
authored
Jan 18, 2010
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test_media_list_player: wait for playing to stop
parent
463555cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
test/libvlc/media_list_player.c
test/libvlc/media_list_player.c
+30
-0
No files found.
test/libvlc/media_list_player.c
View file @
af6a893a
...
...
@@ -154,6 +154,9 @@ static void test_media_list_player_items_queue(const char** argv, int argc)
libvlc_media_list_player_stop
(
mlp
,
&
ex
);
catch
();
while
(
libvlc_media_list_player_is_playing
(
mlp
,
&
ex
))
catch
()
;
libvlc_media_list_player_release
(
mlp
);
catch
();
...
...
@@ -221,6 +224,9 @@ static void test_media_list_player_previous(const char** argv, int argc)
libvlc_media_list_player_stop
(
mlp
,
&
ex
);
catch
();
while
(
libvlc_media_list_player_is_playing
(
mlp
,
&
ex
))
catch
()
;
libvlc_media_list_player_previous
(
mlp
,
&
ex
);
catch
();
...
...
@@ -230,6 +236,9 @@ static void test_media_list_player_previous(const char** argv, int argc)
libvlc_media_list_player_stop
(
mlp
,
&
ex
);
catch
();
while
(
libvlc_media_list_player_is_playing
(
mlp
,
&
ex
))
catch
()
;
libvlc_media_list_player_release
(
mlp
);
catch
();
...
...
@@ -297,6 +306,9 @@ static void test_media_list_player_next(const char** argv, int argc)
libvlc_media_list_player_stop
(
mlp
,
&
ex
);
catch
();
while
(
libvlc_media_list_player_is_playing
(
mlp
,
&
ex
))
catch
()
;
libvlc_media_list_player_next
(
mlp
,
&
ex
);
catch
();
...
...
@@ -306,6 +318,9 @@ static void test_media_list_player_next(const char** argv, int argc)
libvlc_media_list_player_stop
(
mlp
,
&
ex
);
catch
();
while
(
libvlc_media_list_player_is_playing
(
mlp
,
&
ex
))
catch
()
;
libvlc_media_list_player_release
(
mlp
);
catch
();
...
...
@@ -353,6 +368,9 @@ static void test_media_list_player_pause_stop(const char** argv, int argc)
libvlc_media_list_player_stop
(
mlp
,
&
ex
);
catch
();
while
(
libvlc_media_list_player_is_playing
(
mlp
,
&
ex
))
catch
()
;
libvlc_media_release
(
md
);
libvlc_media_list_player_release
(
mlp
);
...
...
@@ -402,6 +420,9 @@ static void test_media_list_player_play_item_at_index(const char** argv, int arg
libvlc_media_list_player_stop
(
mlp
,
&
ex
);
catch
();
while
(
libvlc_media_list_player_is_playing
(
mlp
,
&
ex
))
catch
()
;
libvlc_media_release
(
md
);
catch
();
...
...
@@ -548,6 +569,9 @@ static void test_media_list_player_playback_options (const char** argv, int argc
libvlc_media_list_player_stop
(
mlp
,
&
ex
);
catch
();
while
(
libvlc_media_list_player_is_playing
(
mlp
,
&
ex
))
catch
()
;
// Test looping playback mode
log
(
"Testing media player playback option - Loop
\n
"
);
libvlc_media_list_player_set_playback_mode
(
mlp
,
libvlc_playback_mode_loop
,
&
ex
);
...
...
@@ -562,6 +586,9 @@ static void test_media_list_player_playback_options (const char** argv, int argc
libvlc_media_list_player_stop
(
mlp
,
&
ex
);
catch
();
while
(
libvlc_media_list_player_is_playing
(
mlp
,
&
ex
))
catch
()
;
// Test repeat playback mode
log
(
"Testing media player playback option - Repeat
\n
"
);
libvlc_media_list_player_set_playback_mode
(
mlp
,
libvlc_playback_mode_repeat
,
&
ex
);
...
...
@@ -576,6 +603,9 @@ static void test_media_list_player_playback_options (const char** argv, int argc
libvlc_media_list_player_stop
(
mlp
,
&
ex
);
catch
();
while
(
libvlc_media_list_player_is_playing
(
mlp
,
&
ex
))
catch
()
;
libvlc_media_list_player_release
(
mlp
);
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