mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-07-09 03:04:20 -04:00
Removing an unused parameter.
This commit is contained in:
parent
9825336146
commit
b129a2d84d
@ -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);
|
||||||
|
@ -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;
|
||||||
|
@ -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;
|
||||||
|
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user