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
025d0a23
Commit
025d0a23
authored
Jun 29, 2008
by
Filippo Carone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
failing test for libvlc_media_list_player added
parent
229c8f90
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
1 deletion
+45
-1
test/libvlc/media_list_player.c
test/libvlc/media_list_player.c
+45
-1
No files found.
test/libvlc/media_list_player.c
View file @
025d0a23
...
...
@@ -69,12 +69,56 @@ static void test_media_list_player_pause_stop(const char** argv, int argc)
catch
();
}
static
void
test_media_list_player_play_item_at_index
(
const
char
**
argv
,
int
argc
)
{
libvlc_instance_t
*
vlc
;
libvlc_media_t
*
md
;
libvlc_media_list_t
*
ml
;
libvlc_media_list_player_t
*
mlp
;
const
char
*
file
=
test_default_sample
;
log
(
"Testing play and pause of %s using the media list.
\n
"
,
file
);
libvlc_exception_init
(
&
ex
);
vlc
=
libvlc_new
(
argc
,
argv
,
&
ex
);
catch
();
md
=
libvlc_media_new
(
vlc
,
file
,
&
ex
);
catch
();
ml
=
libvlc_media_list_new
(
vlc
,
&
ex
);
catch
();
mlp
=
libvlc_media_list_player_new
(
vlc
,
&
ex
);
libvlc_media_list_add_media
(
ml
,
md
,
&
ex
);
catch
();
libvlc_media_list_player_set_media_list
(
mlp
,
ml
,
&
ex
);
libvlc_media_list_player_play_item_at_index
(
mlp
,
0
,
&
ex
);
catch
();
libvlc_media_list_player_stop
(
mlp
,
&
ex
);
catch
();
libvlc_media_release
(
md
);
catch
();
libvlc_media_list_player_release
(
mlp
);
catch
();
libvlc_release
(
vlc
);
catch
();
}
int
main
(
void
)
{
test_init
();
test_media_list_player_pause_stop
(
test_defaults_args
,
test_defaults_nargs
);
test_media_list_player_play_item_at_index
(
test_defaults_args
,
test_defaults_nargs
);
return
0
;
}
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