X-Git-Url: http://47.100.26.94:8080/?a=blobdiff_plain;f=main.cpp;h=83affc283d7ebe0bf089176c8391bc27056c1c43;hb=2c38aedb2051562fc83dd20037e0f5271355b591;hp=acbe99a5af9022cf2121cb4f8768aa36d960392d;hpb=642ffd9803b9be0439124d1aebe2780fcbabeb07;p=trackerpp.git diff --git a/main.cpp b/main.cpp index acbe99a..83affc2 100644 --- a/main.cpp +++ b/main.cpp @@ -23,12 +23,12 @@ class Callback : public EngineObserver int main(int argc, char* argv[]) { - initLogger("log4cpp.properties"); + initLogger("./config/log4cpp.properties"); LOG_DEBUG(TAG, "=================================="); - Engine* e = Engine::create(); + EnginePtr e = Engine::create(); e->addObserver(new Callback()); - e->setVideoSrc("xxxx"); + e->setVideoSrc(VideoSrcType::URL, "rtsp://192.168.1.75:554/stream1"); e->start(); e->destroy();