Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
0db6b5e5
Commit
0db6b5e5
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()
(cherry picked from commit 2a14fb71bc4b3cd817856d2187305b0529c0a629)
parent
77f52d97
Changes
1
Hide 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 @
0db6b5e5
...
@@ -36,6 +36,18 @@ static void wait_playing(libvlc_media_player_t *mp)
...
@@ -36,6 +36,18 @@ static void wait_playing(libvlc_media_player_t *mp)
assert
(
state
==
libvlc_Playing
||
state
==
libvlc_Ended
);
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
)
static
void
test_media_player_set_media
(
const
char
**
argv
,
int
argc
)
{
{
const
char
*
file
=
test_default_sample
;
const
char
*
file
=
test_default_sample
;
...
@@ -119,15 +131,9 @@ static void test_media_player_pause_stop(const char** argv, int argc)
...
@@ -119,15 +131,9 @@ static void test_media_player_pause_stop(const char** argv, int argc)
wait_playing
(
mi
);
wait_playing
(
mi
);
#if 0
libvlc_media_player_set_pause
(
mi
,
true
);
/* 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);
log
(
"Waiting for pause
\n
"
);
log
(
"Waiting for pause
\n
"
);
wait_paused
(
mi
);
wait_paused (mp);
#endif
libvlc_media_player_stop
(
mi
);
libvlc_media_player_stop
(
mi
);
libvlc_media_player_release
(
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