Skip to content

Commit d30e343

Browse files
authored
Merge pull request #145 from ardera/develop
use PRId64 instead if lld
2 parents 43eb0be + fc1e208 commit d30e343

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/plugins/omxplayer_video_player.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include <GLES2/gl2ext.h>
1616
#include <GLES2/gl2platform.h>
1717
#include <systemd/sd-bus.h>
18+
#include <inttypes.h>
1819

1920
#include <flutter-pi.h>
2021
#include <platformchannel.h>
@@ -406,7 +407,7 @@ static void *mgr_entry(void *userdata) {
406407
snprintf(
407408
dbus_name,
408409
sizeof(dbus_name),
409-
"org.mpris.MediaPlayer2.omxplayer_%d_%lld",
410+
"org.mpris.MediaPlayer2.omxplayer_%d_%" PRId64,
410411
(int) getpid(),
411412
mgr->player->player_id
412413
);
@@ -1108,7 +1109,7 @@ static int on_create(
11081109
snprintf(
11091110
player->event_channel_name,
11101111
sizeof(player->event_channel_name),
1111-
"flutter.io/omxplayerVideoPlayer/videoEvents%lld",
1112+
"flutter.io/omxplayerVideoPlayer/videoEvents%" PRId64,
11121113
player->player_id
11131114
);
11141115

@@ -1392,7 +1393,7 @@ static int on_dispose_platform_view(
13921393
if (ok != 0) {
13931394
fprintf(
13941395
stderr,
1395-
"[omxplayer_video_player plugin] Could not remove view callbacks for platform view %lld. compositor_remove_view_callbacks: %s\n",
1396+
"[omxplayer_video_player plugin] Could not remove view callbacks for platform view %" PRId64 ". compositor_remove_view_callbacks: %s\n",
13961397
view_id,
13971398
strerror(ok)
13981399
);

0 commit comments

Comments
 (0)