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
db1e6a13
Commit
db1e6a13
authored
Feb 23, 2010
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: Use image.jpg for testing tracks reading.
image.jpg is a very small 1x1 image.
parent
f782942d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
test/Makefile.am
test/Makefile.am
+1
-1
test/libvlc/media.c
test/libvlc/media.c
+3
-2
test/samples/image.jpg
test/samples/image.jpg
+0
-0
No files found.
test/Makefile.am
View file @
db1e6a13
...
...
@@ -29,7 +29,7 @@ EXTRA_PROGRAMS = \
$(NULL)
#check_DATA = samples/test.sample samples/meta.sample
EXTRA_DIST
=
samples/empty.voc
EXTRA_DIST
=
samples/empty.voc
samples/image.jpg
check_HEADERS
=
libvlc/test.h libvlc/libvlc_additions.h
...
...
test/libvlc/media.c
View file @
db1e6a13
...
...
@@ -33,7 +33,8 @@ static void preparsed_changed(const libvlc_event_t *event, void *user_data)
static
void
test_media_preparsed
(
const
char
**
argv
,
int
argc
)
{
const
char
*
file
=
test_default_sample
;
// We use this image file because "empty.voc" has no track.
const
char
*
file
=
SRCDIR
"/samples/image.jpg"
;
log
(
"Testing set_media
\n
"
);
...
...
@@ -58,7 +59,7 @@ static void test_media_preparsed(const char** argv, int argc)
// We are good, now check Elementary Stream info.
libvlc_media_track_info_t
*
tracks
;
int
num
=
libvlc_media_get_tracks_info
(
media
,
&
tracks
);
assert
(
num
>
0
);
assert
(
num
==
1
);
free
(
tracks
);
libvlc_media_release
(
media
);
...
...
test/samples/image.jpg
0 → 100755
View file @
db1e6a13
2.12 KB
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