Commit db1e6a13 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

test: Use image.jpg for testing tracks reading.

image.jpg is a very small 1x1 image.
parent f782942d
...@@ -29,7 +29,7 @@ EXTRA_PROGRAMS = \ ...@@ -29,7 +29,7 @@ EXTRA_PROGRAMS = \
$(NULL) $(NULL)
#check_DATA = samples/test.sample samples/meta.sample #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 check_HEADERS = libvlc/test.h libvlc/libvlc_additions.h
......
...@@ -33,7 +33,8 @@ static void preparsed_changed(const libvlc_event_t *event, void *user_data) ...@@ -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) 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"); log ("Testing set_media\n");
...@@ -58,7 +59,7 @@ static void test_media_preparsed(const char** argv, int argc) ...@@ -58,7 +59,7 @@ static void test_media_preparsed(const char** argv, int argc)
// We are good, now check Elementary Stream info. // We are good, now check Elementary Stream info.
libvlc_media_track_info_t *tracks; libvlc_media_track_info_t *tracks;
int num = libvlc_media_get_tracks_info(media, &tracks); int num = libvlc_media_get_tracks_info(media, &tracks);
assert(num > 0); assert(num == 1);
free(tracks); free(tracks);
libvlc_media_release (media); libvlc_media_release (media);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment