Removing an unused parameter.

This commit is contained in:
Zoe Roux 2019-11-11 21:38:34 +01:00
parent 9825336146
commit b129a2d84d
4 changed files with 4 additions and 4 deletions

View File

@ -11,7 +11,7 @@
extern "C" API int Init(); extern "C" API int Init();
extern "C" API int transmux(const char *path, const char *outPath, const char *stream_uri); extern "C" API int transmux(const char *path, const char *outPath);
//Take the path of the file and the path of the output directory. It will return the list of subtitle streams in the streams variable. The int returned is the number of subtitles extracted. //Take the path of the file and the path of the output directory. It will return the list of subtitle streams in the streams variable. The int returned is the number of subtitles extracted.
extern "C" API Stream* extract_subtitles(const char *path, const char *outPath, int *streamCount, int *subtitleCount); extern "C" API Stream* extract_subtitles(const char *path, const char *outPath, int *streamCount, int *subtitleCount);

View File

@ -8,7 +8,7 @@ int Init()
return sizeof(Stream); return sizeof(Stream);
} }
int transmux(const char *path, const char *out_path, const char *stream_uri) int transmux(const char *path, const char *out_path)
{ {
AVFormatContext *in_ctx = NULL; AVFormatContext *in_ctx = NULL;
AVFormatContext *out_ctx = NULL; AVFormatContext *out_ctx = NULL;

View File

@ -40,7 +40,7 @@ namespace Kyoo.InternalAPI
Debug.WriteLine("&Transmuxing " + episode.Link + " at " + episode.Path + ", outputPath: " + folder); Debug.WriteLine("&Transmuxing " + episode.Link + " at " + episode.Path + ", outputPath: " + folder);
//FFMPEG require us to put DirectorySeparaorChar as '/' for his internal regex. //FFMPEG require us to put DirectorySeparaorChar as '/' for his internal regex.
if (File.Exists(manifest) || TranscoderAPI.transmux(episode.Path, manifest.Replace('\\', '/'), (folder + Path.DirectorySeparatorChar).Replace('\\', '/')) == 0) if (File.Exists(manifest) || TranscoderAPI.transmux(episode.Path, manifest.Replace('\\', '/')) == 0)
return manifest; return manifest;
else else
return null; return null;

View File

@ -14,7 +14,7 @@ namespace Kyoo.InternalAPI.TranscoderLink
public extern static int Init(); public extern static int Init();
[DllImport(TranscoderPath, CallingConvention = CallingConvention.Cdecl)] [DllImport(TranscoderPath, CallingConvention = CallingConvention.Cdecl)]
public extern static int transmux(string path, string out_path, string stream_uri); public extern static int transmux(string path, string out_path);
[DllImport(TranscoderPath, CallingConvention = CallingConvention.Cdecl)] [DllImport(TranscoderPath, CallingConvention = CallingConvention.Cdecl)]
private extern static IntPtr extract_subtitles(string path, string out_path, out int array_length, out int track_count); private extern static IntPtr extract_subtitles(string path, string out_path, out int array_length, out int track_count);