- Timestamp:
- 08/24/10 07:51:02 (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/applications/applestreamingclient/src/protocols/protocolfactory.cpp
r7 r96 26 26 #include "protocols/aes/inboundaesprotocol.h" 27 27 #include "protocols/httpbuff/httpbufferprotocol.h" 28 #include "protocols/timer/finetimer.h" 28 29 29 30 ProtocolFactory::ProtocolFactory() { … … 41 42 ADD_VECTOR_END(result, PT_HTTP_BUFF); 42 43 ADD_VECTOR_END(result, PT_INBOUND_AES); 44 #ifdef HAS_MS_TIMER 45 ADD_VECTOR_END(result, PT_FINE_TIMER); 46 #endif /* HAS_MS_TIMER */ 43 47 return result; 44 48 } … … 46 50 vector<string> ProtocolFactory::HandledProtocolChains() { 47 51 vector<string> result; 52 #ifdef HAS_MS_TIMER 53 ADD_VECTOR_END(result, PC_FINE_TIMER); 54 #endif /* HAS_MS_TIMER */ 55 48 56 ADD_VECTOR_END(result, PC_MASTER_PLAYLIST); 49 57 ADD_VECTOR_END(result, PC_CHILD_PLAYLIST); … … 58 66 vector<uint64_t> ProtocolFactory::ResolveProtocolChain(string name) { 59 67 vector<uint64_t> result; 60 if (name == PC_MASTER_PLAYLIST) { 68 if (false) { 69 70 } 71 #ifdef HAS_MS_TIMER 72 else if (name == PC_FINE_TIMER) { 73 ADD_VECTOR_END(result, PT_UDP); 74 ADD_VECTOR_END(result, PT_FINE_TIMER); 75 } 76 #endif /* HAS_MS_TIMER */ 77 else if (name == PC_MASTER_PLAYLIST) { 61 78 ADD_VECTOR_END(result, PT_TCP); 62 79 ADD_VECTOR_END(result, PT_OUTBOUND_HTTP); … … 99 116 BaseProtocol *pResult = NULL; 100 117 switch (type) { 118 #ifdef HAS_MS_TIMER 119 case PT_FINE_TIMER: 120 pResult = new FineTimer(); 121 break; 122 #endif /* HAS_MS_TIMER */ 101 123 case PT_INBOUND_MASTER_M3U8: 102 124 pResult = new MasterM3U8Protocol();
Note: See TracChangeset
for help on using the changeset viewer.
