diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2019-04-29 15:52:24 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2019-04-29 15:52:24 +0200 |
commit | b061108a1e98ed1d1f869f4e71fe35373515b2a0 (patch) | |
tree | eebfaa427b31a07083d863b8d13e8ec56d543971 /video-opencv | |
parent | 00a1a3d81b82a411cd8cbdf5a480c4007b2b60bc (diff) |
compat: allow naming threads for debugging
Diffstat (limited to 'video-opencv')
-rw-r--r-- | video-opencv/video-property-page.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/video-opencv/video-property-page.cpp b/video-opencv/video-property-page.cpp index 375518db..a43a5ba0 100644 --- a/video-opencv/video-property-page.cpp +++ b/video-opencv/video-property-page.cpp @@ -13,6 +13,7 @@ #include "compat/sleep.hpp" #include "compat/run-in-thread.hpp" #include "compat/library-path.hpp" +#include "compat/thread-name.hpp" #include <cstring> @@ -121,6 +122,8 @@ prop_settings_worker::~prop_settings_worker() void prop_settings_worker::run() { + portable::set_curthread_name("dshow video property page"); + if (idx != -1) { while (cap.get(cv::CAP_PROP_SETTINGS) > 0) |