Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
ad916056
Commit
ad916056
authored
Feb 22, 2010
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: Update libvlc_media test.
parent
8119b328
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
test/libvlc/media.c
test/libvlc/media.c
+7
-7
No files found.
test/libvlc/media.c
View file @
ad916056
...
@@ -43,21 +43,21 @@ static void test_media_preparsed(const char** argv, int argc)
...
@@ -43,21 +43,21 @@ static void test_media_preparsed(const char** argv, int argc)
libvlc_media_t
*
media
=
libvlc_media_new_path
(
vlc
,
file
);
libvlc_media_t
*
media
=
libvlc_media_new_path
(
vlc
,
file
);
assert
(
media
!=
NULL
);
assert
(
media
!=
NULL
);
int
received
=
false
;
volatile
int
received
=
false
;
// Force preparsing. FIXME - Expose a better API for that.
libvlc_media_es_t
*
es
;
int
num
=
libvlc_media_get_es
(
media
,
&
es
);
free
(
es
);
// Check to see if we are properly receiving the event.
libvlc_event_manager_t
*
em
=
libvlc_media_event_manager
(
media
);
libvlc_event_manager_t
*
em
=
libvlc_media_event_manager
(
media
);
libvlc_event_attach
(
em
,
libvlc_MediaPreparsedChanged
,
preparsed_changed
,
&
received
);
libvlc_event_attach
(
em
,
libvlc_MediaPreparsedChanged
,
preparsed_changed
,
&
received
);
// Parse the media. This is synchronous.
libvlc_media_parse
(
media
);
// Wait to see if we properly receive preparsed.
// Wait to see if we properly receive preparsed.
while
(
!
received
);
while
(
!
received
);
// We are good, now check Elementary Stream info.
// We are good, now check Elementary Stream info.
num
=
libvlc_media_get_es
(
media
,
&
es
);
libvlc_media_es_t
*
es
;
int
num
=
libvlc_media_get_es
(
media
,
&
es
);
assert
(
num
>
0
);
assert
(
num
>
0
);
free
(
es
);
free
(
es
);
...
...
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