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
7179862e
Commit
7179862e
authored
Mar 27, 2008
by
Filippo Carone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
failing testapi test added
parent
1ffcf6ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
2 deletions
+45
-2
src/control/testapi.c
src/control/testapi.c
+45
-2
No files found.
src/control/testapi.c
View file @
7179862e
...
...
@@ -259,16 +259,57 @@ static void test_events (const char ** argv, int argc)
catch
();
}
static
void
test_media_player_play_stop
(
const
char
**
argv
,
int
argc
)
{
libvlc_instance_t
*
vlc
;
libvlc_media_descriptor_t
*
md
;
libvlc_media_instance_t
*
mi
;
const
char
**
file
=
"../bindings/java/core/src/test/resources/raffa_voice.ogg"
;
log
(
"Testing playback of %s
\n
"
,
file
);
libvlc_exception_init
(
&
ex
);
vlc
=
libvlc_new
(
argc
,
argv
,
&
ex
);
catch
();
md
=
libvlc_media_descriptor_new
(
vlc
,
file
,
&
ex
);
catch
();
mi
=
libvlc_media_instance_new_from_media_descriptor
(
md
,
&
ex
);
catch
();
libvlc_media_descriptor_release
(
md
);
libvlc_media_instance_play
(
mi
,
&
ex
);
catch
();
/* FIXME: Do something clever */
sleep
(
1
);
assert
(
libvlc_media_instance_get_state
(
mi
,
&
ex
)
!=
libvlc_Error
);
catch
();
libvlc_media_instance_stop
(
mi
,
&
ex
);
catch
();
libvlc_media_instance_release
(
mi
);
catch
();
libvlc_release
(
vlc
);
catch
();
}
int
main
(
int
argc
,
char
*
argv
[])
{
const
char
*
args
[
argc
+
5
];
int
nlibvlc_args
=
sizeof
(
args
)
/
sizeof
(
args
[
0
]);
alarm
(
3
0
);
/* Make sure "make check" does not get stuck */
alarm
(
5
0
);
/* Make sure "make check" does not get stuck */
args
[
0
]
=
"-vvv"
;
args
[
1
]
=
"-I"
;
args
[
2
]
=
"
-
dummy"
;
args
[
2
]
=
"dummy"
;
args
[
3
]
=
"--plugin-path=../modules"
;
args
[
4
]
=
"--vout=dummy"
;
args
[
5
]
=
"--aout=dummy"
;
...
...
@@ -277,6 +318,8 @@ int main (int argc, char *argv[])
test_core
(
args
,
nlibvlc_args
);
test_media_player_play_stop
(
args
,
nlibvlc_args
);
test_events
(
args
,
nlibvlc_args
);
test_media_list
(
args
,
nlibvlc_args
);
...
...
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