summaryrefslogtreecommitdiff
path: root/media-sound/deadbeef/files/deadbeef-1.9.2-cdda-plugin-clang-16-fixes.patch
blob: cef941162b93d6f598b43eb5ffdc4582a73585b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
From 779066a54aa8a1a92b92ebdabc8a93d6ef3fb3ba Mon Sep 17 00:00:00 2001
From: Oleksiy Yakovenko <wakeroid@gmail.com>
Date: Wed, 26 Oct 2022 11:50:02 +0200
Subject: [PATCH] cdda: enum cast fix (fixes #2879)

---
 plugins/cdda/cdda.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugins/cdda/cdda.c b/plugins/cdda/cdda.c
index 7229d9592..2fe3b5fda 100644
--- a/plugins/cdda/cdda.c
+++ b/plugins/cdda/cdda.c
@@ -846,7 +846,7 @@ get_param (const char *key, char *value, int len, const char *def)
 "property \"CD drive to load\" select[%u] cdda.drive_device 0"
 
 static int
-cda_action_add_cd (DB_plugin_action_t *act, int ctx)
+cda_action_add_cd (DB_plugin_action_t *act, ddb_action_context_t ctx)
 {
     /* Get all devices containg CD audio media */
     cdio_close_tray(NULL, NULL);
@@ -982,7 +982,7 @@ load_cddb_data (ddb_playlist_t *plt, cddb_disc_t *disc, const size_t disc_num)
 }
 
 static int
-action_disc_n (DB_plugin_action_t *act, int ctx)
+action_disc_n (DB_plugin_action_t *act, ddb_action_context_t ctx)
 {
     const int disc_num = atoi(act->name+11);
     int res = -1;
-- 
2.38.1