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
2a14fb71
Commit
2a14fb71
authored
Jun 27, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test libvlc_media_player_set_pause()
parent
4faa38ec
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
8 deletions
+14
-8
test/libvlc/media_player.c
test/libvlc/media_player.c
+14
-8
No files found.
test/libvlc/media_player.c
View file @
2a14fb71
...
...
@@ -36,6 +36,18 @@ static void wait_playing(libvlc_media_player_t *mp)
assert
(
state
==
libvlc_Playing
||
state
==
libvlc_Ended
);
}
static
void
wait_paused
(
libvlc_media_player_t
*
mp
)
{
libvlc_state_t
state
;
do
{
state
=
libvlc_media_player_get_state
(
mp
);
}
while
(
state
!=
libvlc_Paused
&&
state
!=
libvlc_Ended
);
state
=
libvlc_media_player_get_state
(
mp
);
assert
(
state
==
libvlc_Paused
||
state
==
libvlc_Ended
);
}
static
void
test_media_player_set_media
(
const
char
**
argv
,
int
argc
)
{
const
char
*
file
=
test_default_sample
;
...
...
@@ -119,15 +131,9 @@ static void test_media_player_pause_stop(const char** argv, int argc)
wait_playing
(
mi
);
#if 0
/* This can't work because under some condition (short file, this is the case) this will be
* equivalent to a play() */
libvlc_media_player_pause (mi);
libvlc_media_player_set_pause
(
mi
,
true
);
log
(
"Waiting for pause
\n
"
);
wait_paused (mp);
#endif
wait_paused
(
mi
);
libvlc_media_player_stop
(
mi
);
libvlc_media_player_release
(
mi
);
...
...
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