Commit Graph

128 Commits

Author SHA1 Message Date
Thomas Guillem aa4c7ce795 input: item: fix false positives when matching slaves
- don't match 2 possible slaves between each others
 - The slave name len should not be twice longer than the item name len.
   (avoid matching "2016 - blabla.aac" with "20.mkv" for example)

The matching algorithm is still quite dumb and far from perfect. We should
detect item as slaves only if they have a language indication in their path
name.

Fixes #18913
2017-11-06 15:51:47 +01:00
Thomas Guillem 674c416d2d test: slaves: fix false positive when calling test_expected_slaves with 0 2017-11-06 15:41:03 +01:00
Thomas Guillem bb44d80ade test: slaves: remove unused code 2017-11-06 15:41:03 +01:00
Thomas Guillem 779354ca8b test: media: don't detect slaves when testing parsing
There is a slave test for that.
2017-11-06 15:40:27 +01:00
Steve Lhomme 562a5f59b2 test: use the jpeg file to test vout specific calls
make sure we use a dummy/portable vout by default in tests.

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
2016-11-15 18:13:46 +01:00
Thomas Guillem 215df6e644 test/media: test preparser timeout and cancelation 2016-09-27 19:01:48 +02:00
Thomas Guillem af0f469647 test/media: factor libvlc creation 2016-09-27 19:01:48 +02:00
Thomas Guillem 5f3abe14ea libvlc: add renderer_discoverer external API 2016-09-20 11:06:51 +02:00
Thomas Guillem 3efea40738 test: media: print parsed informations 2016-07-20 19:30:18 +02:00
Thomas Guillem 5ccd40099d test: media: preparse a specific media from command line 2016-07-20 19:30:18 +02:00
Thomas Guillem b0984a632f libvlc: add missing "_t" in media_discoverer structs/enums
For the sake of coherence.
2016-07-20 13:44:12 +02:00
Thomas Guillem 010549a38f test: media_discoverer: don't run discoverers
Since service discoveries depends on data of the user.
2016-06-14 10:07:45 +02:00
Thomas Guillem 3e7711177d test: media_discoverer: test a specific sd from command line 2016-06-13 10:57:30 +02:00
Thomas Guillem 641f3d741f test: add back media_discoverer test
This doesn't test network services anymore.
2016-06-13 10:57:22 +02:00
Thomas Guillem 9fab6639b5 test libvlc_media_discoverer 2016-06-10 14:39:06 +02:00
Thomas Guillem 99c8288760 libvlc: add a timeout in libvlc_media_parse_with_options() 2016-06-05 12:58:32 +02:00
Rémi Denis-Courmont 2ce8926498 test: test libvlc_media_player_(set|get)_role 2016-06-05 12:26:30 +03:00
Thomas Guillem bb6fe6ffc7 input: test slaves
test_media_has_slaves_from_player is deactivated for now since there is now way
to test inputs in a reliable way. Indeed, demux modules may depend on
configuration and systems libs.

TODO: test libvlc_media_player_add_slave
2016-05-31 16:23:09 +02:00
Thomas Guillem d7c3b38e93 test: libvlc: add missing static 2016-05-30 18:50:29 +02:00
Thomas Guillem 9126e33f77 libvlc: merge libvlc_MediaParsedStatus and libvlc_MediaParsedCharged events
Because having two differents events for the same objective is way too
confusing (libvlc_MediaParsedStatus was recently added by me).

libvlc_MediaParsedCharged is now always sent after a call to
libvlc_media_parse_*() (this was not the case if the pre-parsing was skipped).

The core vlc_InputItemPreparsedChanged event is now only attached from the
media player. This allows the libvlc_MediaParsedCharged event to be sent when a
media is parsed from a media player.

/!\ Behavior change in libvlc API /!\

The libvlc_event_t.u.media_parsed_changed.new_status value changed, this is now
a libvlc_media_parsed_status_t. Before this patch, this value was always set to
true, even in case of parse failure/skipped. Now this value can be skipped (1),
failed (2) or done (3). There should be no changes for users that were checking
if new_status was true, since this events was called for these 3 cases (that
are all > 0).
2016-05-24 11:34:31 +02:00
Rémi Denis-Courmont 8f2e1e57cf Use vlc_close() 2016-04-22 00:11:43 +03:00
Thomas Guillem 70cd3eda38 test/media: test subitems parsing failure 2016-04-17 08:14:45 +03:00
Thomas Guillem 4ece64396e test/media: test that remote locations are skipped 2016-04-17 08:14:45 +03:00
Thomas Guillem d66f670ecd test/media: fix arguments order
In order to match libvlc ones.
2016-04-17 08:14:45 +03:00
Thomas Guillem ebda694ad4 test/media: remove libjpeg dependency 2016-04-17 08:14:45 +03:00
Thomas Guillem 9caa69fea4 test/media: use libvlc_media_parse_with_options 2016-04-17 08:14:45 +03:00
Francois Cartegnie 0c06f9e344 test: media: disable stream:// tests
Should fail by default and is validated on success.
The whole test is incorrect, reporting false positives
and no possible true negatives.
2016-04-14 10:31:03 +02:00
Rémi Denis-Courmont 000feece0e test: fix memory leaks (fixes #14730) 2016-01-02 18:25:07 +02:00
Rémi Denis-Courmont d1f507fb0c test: remove cargo-culted LibVLC parameters
* ignore-config is enabled by default
 * intf is irrelevant (as libvlc_add_intf() is not called in tests)
 * media-library is disabled by default
 * aout is overriden by the media player
 * vout is overriden by the media player
2015-11-25 18:22:42 +02:00
Thomas Guillem 24f1ec9c1c test: fix test_media_subitems without HAVE_OPENAT 2015-11-06 11:31:43 +01:00
Thomas Guillem e4695f0adf test: add test_media_subitems
Test media subitems when parsing a directory via a path, via a fd and via
various locations.
2015-11-06 08:54:37 +01:00
Thomas Guillem 341e98d348 test: media: use a sem 2015-11-05 09:40:00 +01:00
Thomas Guillem 6a370dcfe1 test: fix test_media_preparsed
Don't use libvlc_media_parse and libvlc_media_get_tracks_info (deprecated).
2015-11-04 19:28:58 +01:00
Rémi Denis-Courmont ee77bd03d2 equalizer: fix out of range test case 2014-08-08 20:23:01 +03:00
Rémi Denis-Courmont d7420aadc6 audio: add test for the new audio device functions 2014-05-15 21:10:57 +08:00
Rémi Denis-Courmont b56c7ee277 equalizer: fix inverted parameters in test case 2013-07-28 23:10:49 +03:00
Mark Lee cbedb0c6e5 libvlc: add tests for the equalizer API
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
2013-07-24 19:22:03 +03:00
Rémi Denis-Courmont 490b5fd010 test: add coverage for audio output and device functions 2013-07-14 15:07:39 +03:00
Rémi Denis-Courmont 1394bd284b Revert "Add test cases for the libvlc equalizer API."
This reverts commit 15498896d0.
2012-09-21 14:06:38 +03:00
Mark Lee 15498896d0 Add test cases for the libvlc equalizer API.
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2012-09-15 15:16:17 +02:00
Rémi Denis-Courmont 7dcac68447 Move src/control/ to lib/ 2011-08-30 23:40:34 +03:00
Rémi Denis-Courmont 085558ebcd Do not use internal libvlc symbol outside of libvlc 2011-05-07 19:10:01 +03:00
Rémi Denis-Courmont 549ce2cad1 Override the plugins path with an environment variable...
...rather than with a command line option. This enables extending the
set of plugins paths globally, for all LibVLC applications.

Using an environment variable seems more logical than a command line
option considering that the module bank is shared by all VLC instances
in the process. In other words, it did not belong as a parameter to
libvlc_new().
2011-02-12 11:04:35 +02:00
Jakub Wieczorek 3f80895700 LibVLC Audio/video filters listing API
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2010-12-20 09:47:33 +01:00
Rémi Denis-Courmont 645e8d0bee Add version infos to new LibVLC functions 2010-06-27 17:10:33 +03:00
Rémi Denis-Courmont 9529ae4e8c Add test cases for bug #3812 2010-06-27 17:10:07 +03:00
Rémi Denis-Courmont 2a14fb71bc Test libvlc_media_player_set_pause() 2010-06-27 16:54:07 +03:00
Jean-Paul Saman 88f536c0c0 test/libvlc: add libvlc_MediaPlayer* events for input states
Signed-off-by: Jean-Paul Saman <jean-paul.saman@m2x.nl>
2010-03-18 11:16:03 +01:00
Pierre d'Herbemont 16511fee7c test: Report when preparsed is working only when it works. 2010-02-25 23:47:03 +01:00
Pierre d'Herbemont ba1fea8d5e test: Alloc more time for media_list_player test. 2010-02-25 23:47:03 +01:00