Commit e3183c90 authored by Carsten Schlote's avatar Carsten Schlote

Changed code to link against dynamic loader instead of libmediainfo

parent 5b26a0bb
......@@ -7,7 +7,7 @@
"name": "mediainfo-d",
"targetType": "autodetect",
"lflags": [
"-lmediainfo"
"-ldl"
],
"versions": [ "MediaInfo_UTF", "Workaround_UTF_Bug" ]
}
......@@ -6,7 +6,7 @@
],
"copyright": "Created © 2018, Carsten Schlote",
"dependencies": {
"mediainfo-d":">=0.0.3"
"mediainfo-d":">=0.0.4"
},
"name": "mediainfo-demo1"
}
\ No newline at end of file
}
......@@ -12,12 +12,11 @@ int main(string[] args)
assert(args.length >= 2, "Pass a filename to scan to the program.");
fileName = args[1];
auto rc0 = MediaInfoDLL_Load();
writeln("Loader result: ", rc0);
auto rc1 = MediaInfoDLL_IsLoaded();
writeln("IsLoaded result:", rc1);
MediaInfoDLL_UnLoad();
//~ auto rc0 = MediaInfoDLL_Load();
//~ writeln("Loader result: ", rc0);
//~ auto rc1 = MediaInfoDLL_IsLoaded();
//~ writeln("IsLoaded result:", rc1);
//~ MediaInfoDLL_UnLoad();
auto info = MediaInfo();
......
......@@ -6,7 +6,7 @@
],
"copyright": "Created © 2018, Carsten Schlote",
"dependencies": {
"mediainfo-d":">=0.0.3"
"mediainfo-d":">=0.0.4"
},
"name": "mediainfo-demo2"
}
\ No newline at end of file
}
......@@ -40,7 +40,7 @@ private:
{
if(_payload)
{
MediaInfo_Delete(_payload);
mediainfo_FuntionTable.MediaInfo_Delete(_payload);
_payload = null;
MediaInfoDLL_UnLoad();
}
......
......@@ -68,8 +68,6 @@ enum MediaInfo_info_t
MediaInfo_Info_Max = 8
}
alias MediaInfo_info_C = MediaInfo_info_t;
/** @brief Option if InfoKind = Info_Options */
enum MediaInfo_infooptions_t
{
......@@ -140,10 +138,10 @@ else
extern __gshared void MediaInfoListA_Close (void*, size_t);
extern __gshared const(char)* MediaInfoA_Inform (void*, size_t Reserved);
extern __gshared const(char)* MediaInfoListA_Inform (void*, size_t, size_t Reserved);
extern __gshared const(char)* MediaInfoA_GetI (void*, MediaInfo_stream_t StreamKind, size_t StreamNumber, size_t Parameter, MediaInfo_info_C KindOfInfo);
extern __gshared const(char)* MediaInfoListA_GetI (void*, size_t, MediaInfo_stream_t StreamKind, size_t StreamNumber, size_t Parameter, MediaInfo_info_C KindOfInfo);
extern __gshared const(char)* MediaInfoA_Get (void*, MediaInfo_stream_t StreamKind, size_t StreamNumber, const(MediaInfo_Char)* Parameter, MediaInfo_info_C KindOfInfo, MediaInfo_info_C KindOfSearch);
extern __gshared const(char)* MediaInfoListA_Get (void*, size_t, MediaInfo_stream_t StreamKind, size_t StreamNumber, const(MediaInfo_Char)* Parameter, MediaInfo_info_C KindOfInfo, MediaInfo_info_C KindOfSearch);
extern __gshared const(char)* MediaInfoA_GetI (void*, MediaInfo_stream_t StreamKind, size_t StreamNumber, size_t Parameter, MediaInfo_info_t KindOfInfo);
extern __gshared const(char)* MediaInfoListA_GetI (void*, size_t, MediaInfo_stream_t StreamKind, size_t StreamNumber, size_t Parameter, MediaInfo_info_t KindOfInfo);
extern __gshared const(char)* MediaInfoA_Get (void*, MediaInfo_stream_t StreamKind, size_t StreamNumber, const(MediaInfo_Char)* Parameter, MediaInfo_info_t KindOfInfo, MediaInfo_info_t KindOfSearch);
extern __gshared const(char)* MediaInfoListA_Get (void*, size_t, MediaInfo_stream_t StreamKind, size_t StreamNumber, const(MediaInfo_Char)* Parameter, MediaInfo_info_t KindOfInfo, MediaInfo_info_t KindOfSearch);
extern __gshared c_ulong MediaInfoA_Output_Buffer_Get (void*, const(MediaInfo_Char)* Parameter);
extern __gshared c_ulong MediaInfoA_Output_Buffer_GetI (void*, size_t Pos);
extern __gshared const(char)* MediaInfoA_Option (void*, const(MediaInfo_Char)* Parameter, const(MediaInfo_Char)* Value);
......
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