MCPcopy Create free account
hub / github.com/MediaArea/MediaInfoLib / Format_Test

Method Format_Test

Source/MediaInfo/Reader/Reader_libcurl.cpp:888–910  ·  view source on GitHub ↗

---------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

886
887//---------------------------------------------------------------------------
888size_t Reader_libcurl::Format_Test(MediaInfo_Internal* MI, String File_Name)
889{
890 if (!Load())
891 return 0;
892
893 #if MEDIAINFO_EVENTS
894 {
895 string File_Name_Local=Ztring(File_Name).To_Local();
896 wstring File_Name_Unicode=Ztring(File_Name).To_Unicode();
897 struct MediaInfo_Event_General_Start_0 Event;
898 memset(&Event, 0xFF, sizeof(struct MediaInfo_Event_General_Start_0));
899 Event.StreamIDs_Size=0;
900 Event.EventCode=MediaInfo_EventCode_Create(MediaInfo_Parser_None, MediaInfo_Event_General_Start, 0);
901 Event.Stream_Size=(int64u)-1;
902 Event.FileName=File_Name_Local.c_str();
903 Event.FileName_Unicode=File_Name_Unicode.c_str();
904 MI->Config.Event_Send(NULL, (const int8u*)&Event, sizeof(MediaInfo_Event_General_Start_0));
905 }
906 #endif //MEDIAINFO_EVENTS
907
908 //With Parser MultipleParsing
909 return Format_Test_PerParser(MI, File_Name);
910}
911
912//---------------------------------------------------------------------------
913void Reader_libcurl::Curl_Log(int Result, const Ztring &Message)

Callers

nothing calls this directly

Calls 3

LoadFunction · 0.85
c_strMethod · 0.45
Event_SendMethod · 0.45

Tested by

no test coverage detected