Skip to content

Commit 2b9d254

Browse files
committed
fix omxplayer build
- remove LOG_ERROR double definition - remove old initializer declarations - fix some unused args warnings
1 parent 933a5f3 commit 2b9d254

File tree

2 files changed

+6
-15
lines changed

2 files changed

+6
-15
lines changed

include/plugins/omxplayer_video_player.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,17 +79,10 @@ struct omxplayer_mgr_task {
7979
};
8080
};
8181

82-
83-
84-
#define OMXPLAYER_VIDEO_PLAYER_INITIALIZER {0}
85-
8682
enum data_source_type {
8783
kDataSourceTypeAsset,
8884
kDataSourceTypeNetwork,
8985
kDataSourceTypeFile
9086
};
9187

92-
extern int omxpvidpp_init(void);
93-
extern int omxpvidpp_deinit(void);
94-
9588
#endif

src/plugins/omxplayer_video_player.c

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,7 @@
2626

2727
#include <plugins/omxplayer_video_player.h>
2828

29-
#define LOG_ERROR(...) fprintf(stderr, "[omxplayer video player plugin] " __VA_ARGS__)
30-
#ifdef DEBUG
31-
# define LOG_DEBUG(...) fprintf(stderr, "[omxplayer video player plugin] " __VA_ARGS__)
32-
#else
33-
# define LOG_DEBUG(...) do {} while (0)
34-
#endif
29+
FILE_DESCR("omxplayer video_player plugin")
3530

3631
static struct {
3732
bool initialized;
@@ -1528,12 +1523,15 @@ static int on_receive_mch(
15281523
}
15291524

15301525
int8_t omxpvidpp_is_present(void) {
1531-
return plugin_registry_is_plugin_present("omxplayer video_player plugin");
1526+
return plugin_registry_is_plugin_present(flutterpi.plugin_registry, "omxplayer video_player plugin");
15321527
}
15331528

15341529
enum plugin_init_result omxpvidpp_init(struct flutterpi *flutterpi, void **userdata_out) {
15351530
int ok;
1536-
1531+
1532+
(void) flutterpi;
1533+
(void) userdata_out;
1534+
15371535
ok = plugin_registry_set_receiver("flutter.io/omxplayerVideoPlayer", kStandardMethodCall, on_receive_mch);
15381536
if (ok != 0) {
15391537
return kError_PluginInitResult;

0 commit comments

Comments
 (0)