CARVIEW |
Select Language
HTTP/2 200
date: Sun, 12 Oct 2025 03:14:53 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
vary: accept-encoding
cf-cache-status: DYNAMIC
content-encoding: gzip
set-cookie: _csrf-frontend=f572368de202d862913b2172ee808412c8558d0d48f4cf8223f1c8d1b004c9e6a%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22zSlh6Egh7xOs0ipP8dR2Gz4aw-Dguq3u%22%3B%7D; HttpOnly; Path=/
cf-ray: 98d36dfbdabfa9b7-BLR
mpv_ipc_issue.c - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // MPV test
- //
- // mpv stops responding after about 50 loadfile commands are written, however writefile can keep
- // writing even after mpv stops responding to commands
- // mpv starts responding after this program is forced to quit/the pipe disconnects
- // If you open pipe, write, then close pipe every command, this problem does not occur.
- //
- // You can validate this behavior by opening mpv in command line mode with -v and seeing
- // that the output stops after some time. MPV wil still respond to keyboard commands though
- #include <Windows.h>
- #include "stdio.h"
- int main()
- {
- //const char command[] = "loadfile sdfasdfsadfasdfasdfc.mp3\n"; //doesn't matter if file doesn't exist
- const char command[] = "loadfile test.mp3\n";
- //const char command[] = "loadfile movie.mpg\n";
- HANDLE hPipe = CreateFile(L"\\\\.\\pipe\\mpvsocket", GENERIC_WRITE, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
- if (hPipe == INVALID_HANDLE_VALUE)
- {
- return 0; //exit if can't create pipe
- }
- unsigned int total_bytes_written = 0;
- for (int i = 0; i < 1000; i++)
- {
- DWORD dwWritten;
- BOOL fSuccess = WriteFile(hPipe, command, sizeof(command)-1, &dwWritten, NULL);
- if (!fSuccess)
- {
- break; //exit if write fails
- }
- total_bytes_written += dwWritten;
- printf("%d: wrote %d bytes, total: %d\n", i, dwWritten, total_bytes_written);
- //FlushFileBuffers(hPipe);
- Sleep(300); //timing doesn't seem to make any difference, just takes longer to cause the problem.
- }
- CloseHandle(hPipe);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
-
✅⭐ Make huge profits on trading ⭐⭐ S
JavaScript | 2 sec ago | 0.25 KB
-
⭐✅ Marketplace Glitch ✅ Working ✅ NEVER SEEN...
JavaScript | 11 sec ago | 0.25 KB
-
⭐✅ Exploit 2500$ in 15 Minutes⭐⭐⭐ G
JavaScript | 20 sec ago | 0.25 KB
-
Free Crypto Method (NEVER SEEN BEFORE)⭐⭐ X
JavaScript | 30 sec ago | 0.25 KB
-
⭐✅ Swapzone Glitch ✅ Working ⭐⭐ X
JavaScript | 40 sec ago | 0.25 KB
-
📌 Swapzone +37% glitch ⭐ T
JavaScript | 1 min ago | 0.25 KB
-
Free Crypto Method (NEVER SEEN BEFORE)⭐⭐ X
JavaScript | 1 min ago | 0.25 KB
-
✅⭐ Make huge profits on trading ⭐⭐ B
JavaScript | 1 min ago | 0.25 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand