diff src/track/media.cpp @ 78:1ce00c1c8ddc

dep/animia: update to upstream
author Paper <mrpapersonic@gmail.com>
date Wed, 11 Oct 2023 12:16:15 -0400
parents 3364fadc8a36
children 825506f0e221
line wrap: on
line diff
--- a/src/track/media.cpp	Fri Oct 06 06:18:53 2023 -0400
+++ b/src/track/media.cpp	Wed Oct 11 12:16:15 2023 -0400
@@ -5,6 +5,7 @@
 #include "core/strings.h"
 #include <string>
 #include <vector>
+#include <QDebug>
 
 namespace Track {
 namespace Media {
@@ -13,11 +14,12 @@
 	/* getting all open files */
 	std::vector<int> pids = Animia::get_all_pids();
 	for (int i : pids) {
-		if (Animia::get_process_name(i) == "mpc-hc64.exe") {
+		if (Animia::get_process_name(i) == "vlc") {
 			std::vector<std::string> files = Animia::filter_system_files(Animia::get_open_files(i));
 			for (std::string s : files) {
+				qDebug() << Strings::ToQString(s);
 				Filesystem::Path p(s);
-				if (p.Extension() == "mkv")
+				if (p.Extension() == "mp4")
 					return p;
 			}
 		}