Răsfoiți Sursa

V0.5.3
1、修改了部分VideoPlayer的内容

Apple 4 luni în urmă
părinte
comite
126384cc93
2 a modificat fișierele cu 4 adăugiri și 2 ștergeri
  1. 1 2
      common/FmtLog/fmtlog.h
  2. 3 0
      common/VideoPlayer/VideoPlayer.cpp

+ 1 - 2
common/FmtLog/fmtlog.h

@@ -21,8 +21,7 @@
 #if defined (_WIN32)
 static const std::regex _reg_file(R"(.*\\([\S]*[\.][\S]*)$)");
 #elif defined(__linux__)
-// const std::regex _reg_file(R"(.*/([\S]*[\.][\S]*)$)");
-// std::regex _reg_file;
+static const std::regex _reg_file(R"(.*/([\S]*[\.][\S]*)$)");
 #endif
 
 /* Debug输出 */

+ 3 - 0
common/VideoPlayer/VideoPlayer.cpp

@@ -54,6 +54,7 @@ VideoPlayer::~VideoPlayer()
     {
         delete m_image;
     }
+    SPDLOG_DEBUG("视频播放器已关闭");
 }
 
 /**
@@ -117,6 +118,8 @@ void VideoPlayer::openPlayVedio(const QString& fileName)
     m_decodeVedio->startDecodeVedio();
     m_semRefresh->release(2);
     emit signal_refreshImage();
+    this->show();
+    SPDLOG_DEBUG("打开视频成功:{}", fileName.toStdString());
 }
 
 /* 播放视频 */