- mDispatchHandler = core.addHandler("video.newcontext",
- boost::bind(&Impl::contextRecreated, this));
+ Dispatch& dispatch = Dispatch::global();
+ mNewContextDispatch = dispatch.addTarget("video.newcontext",
+ boost::bind(&Impl::contextRecreated, this));