| 933 | } |
| 934 | |
| 935 | std::shared_ptr<ProcessorWindow> Processor::recreateEditorWindow() { |
| 936 | traceScope(); |
| 937 | |
| 938 | if (auto& w = m_windows[getWindowIndex()]) { |
| 939 | auto pos = w->getPosition(); |
| 940 | auto tid = w->getTid(); |
| 941 | auto onHide = w->getOnHide(); |
| 942 | if (auto func = w->getCaptureCallbackFFmpeg()) { |
| 943 | w.reset(); |
| 944 | return getOrCreateEditorWindowInternal(tid, func, onHide, pos.x, pos.y); |
| 945 | } |
| 946 | if (auto func = w->getCaptureCallbackNative()) { |
| 947 | w.reset(); |
| 948 | return getOrCreateEditorWindowInternal(tid, func, onHide, pos.x, pos.y); |
| 949 | } |
| 950 | } |
| 951 | |
| 952 | logln("error: can't recreate editor as no window exists"); |
| 953 | |
| 954 | return nullptr; |
| 955 | } |
| 956 | |
| 957 | void Processor::showEditor(int x, int y) { |
| 958 | traceScope(); |
no test coverage detected