Chloe Marcec před 5 roky
rodič
revize
edb1d5d242
1 změnil soubory, kde provedl 2 přidání a 3 odebrání
  1. 2 3
      src/video_core/gpu.cpp

+ 2 - 3
src/video_core/gpu.cpp

@@ -494,9 +494,8 @@ void GPU::PushCommandBuffer(Tegra::ChCommandHeaderList& entries) {
 
 
 void GPU::ClearCommandBuffer() {
 void GPU::ClearCommandBuffer() {
     // This condition fires when a video stream ends, clear all intermediary data
     // This condition fires when a video stream ends, clear all intermediary data
-    if (cdma_pusher) {
-        cdma_pusher.reset();
-    }
+    cdma_pusher.reset();
+    LOG_INFO(Service_NVDRV, "NVDEC video stream ended");
 }
 }
 
 
 void GPU::SwapBuffers(const Tegra::FramebufferConfig* framebuffer) {
 void GPU::SwapBuffers(const Tegra::FramebufferConfig* framebuffer) {