Browse Source

playlist: disable external preparser on mobile platforms

External process preparsing is not available on Android and iOS-derived
platforms (iOS, tvOS, watchOS, visionOS) as spawning external processes
is either restricted or impractical on these platforms.

Use the internal (in-process) preparser instead.
mmdevice-clean/8
Alexandre Janniaux 2 months ago
committed by Steve Lhomme
parent
commit
84255dcf93
  1. 8
      src/playlist/playlist.c

8
src/playlist/playlist.c

@ -22,6 +22,10 @@
# include "config.h"
#endif
#ifdef __APPLE__
# include <TargetConditionals.h>
#endif
#include "playlist.h"
#include <vlc_common.h>
@ -45,7 +49,11 @@ vlc_playlist_New(vlc_object_t *parent, enum vlc_playlist_preparsing rec,
.types = VLC_PREPARSER_TYPE_PARSE | VLC_PREPARSER_TYPE_FETCHMETA_LOCAL,
.max_parser_threads = preparse_max_threads,
.timeout = preparse_timeout,
#if defined(__ANDROID__) || (defined(__APPLE__) && TARGET_OS_IPHONE)
.external_process = false,
#else
.external_process = true,
#endif
};
playlist->parser = vlc_preparser_New(parent, &cfg);
if (playlist->parser == NULL)

Loading…
Cancel
Save