summaryrefslogtreecommitdiff
blob: 97ddeb62fc5591375fa53f0dddad99c2868a5919 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
--- MediaInfoLib/Source/MediaInfo/Reader/Reader_libmms.cpp
+++ MediaInfoLib/Source/MediaInfo/Reader/Reader_libmms.cpp
@@ -37,10 +37,8 @@
 #else
     #ifdef MEDIAINFO_LIBMMS_FROMSOURCE
         #include "mmsx.h"
-        #include "mmsh.h"
     #else //MEDIAINFO_LIBMMS_FROMSOURCE
         #include "libmms/mmsx.h"
-        #include "libmms/mmsh.h"
     #endif //MEDIAINFO_LIBMMS_FROMSOURCE
 #endif
 using namespace ZenLib;
@@ -59,30 +57,10 @@
 //---------------------------------------------------------------------------
 size_t Reader_libmms::Format_Test(MediaInfo_Internal* MI, const String &File_Name)
 {
-    mmsx_t* Handle;
     //Opening the file
-    if (!MI->Config.File_Mmsh_Describe_Only_Get())
-    {
-       // Use MMS or MMSH (Send a DESCRIBE & PLAY request)
-       Handle=mmsx_connect(0, 0, Ztring(File_Name).To_Local().c_str(), (int)-1);
-       if (Handle==NULL)
-           return 0;
-    }
-    else
-    {
-       // Use MMSH & Send a DESCRIBE request
-       mmsh_t* MmshHandle;
-   
-       MmshHandle = mmsh_describe_request(0, 0, Ztring(File_Name).To_Local().c_str());
-       if(MmshHandle==NULL)
-          return 0;
-   
-       Handle=mmsx_set_mmsh_handle(MmshHandle);
-       if (Handle==NULL) {
-          mmsh_close(MmshHandle); 
-          return 0;
-       }
-    }
+    mmsx_t* Handle=mmsx_connect(0, 0, Ztring(File_Name).To_Local().c_str(), (int)-1);
+    if (Handle==NULL)
+        return 0;
 
     mms_off_t Offset=mmsx_seek(0, Handle, 0, SEEK_SET);
     uint32_t Length=mmsx_get_length(Handle);