equal
deleted
inserted
replaced
191 } |
191 } |
192 |
192 |
193 gint TMSFactoryImpl::QueryDevice(const TMSStreamType strmtype) |
193 gint TMSFactoryImpl::QueryDevice(const TMSStreamType strmtype) |
194 { |
194 { |
195 gint ret(TMS_RESULT_SUCCESS); |
195 gint ret(TMS_RESULT_SUCCESS); |
196 TMSProxy* session = new TMSProxy; |
196 TMSProxy* session = new TMSProxy(); |
197 if (session) |
197 if (session) |
198 { |
198 { |
199 if (session->Connect() == TMS_RESULT_SUCCESS) |
199 if (session->Connect() == TMS_RESULT_SUCCESS) |
200 { |
200 { |
201 if (strmtype == TMS_STREAM_UPLINK) |
201 if (strmtype == TMS_STREAM_UPLINK) |