summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Stoeckl <code@mstoeckl.com>2022-09-07 19:54:31 -0400
committerManuel Stoeckl <code@mstoeckl.com>2022-09-08 06:34:21 -0400
commit625cde97dc81bdbcef4d24b8427d3f06a0379e2f (patch)
tree9089e71cc151417b0a3a3f45133202aa70fd3d9b
parenta77a0087e4bc2140807f7b34836878e017ac5a45 (diff)
Fix out-of-bounds write
MPV_FORMAT_FLAG requires that the 'data' argument be a pointer to an 'int'.
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 39fd933..b8edcd0 100644
--- a/src/main.c
+++ b/src/main.c
@@ -345,7 +345,7 @@ static void *handle_auto_stop() {
static void *handle_mpv_events() {
pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, NULL);
- bool mpv_paused = 0;
+ int mpv_paused = 0;
time_t start_time = time(NULL);
const int MPV_OBSERVE_PAUSE = 1;