mirror of
https://github.com/Genymobile/scrcpy
synced 2025-09-03 07:45:16 +00:00
Declare callbacks static
It was a typo, "static" was missing.
This commit is contained in:
@@ -330,7 +330,7 @@ scrcpy(const struct scrcpy_options *options) {
|
|||||||
|
|
||||||
av_log_set_callback(av_log_callback);
|
av_log_set_callback(av_log_callback);
|
||||||
|
|
||||||
const struct stream_callbacks stream_cbs = {
|
static const struct stream_callbacks stream_cbs = {
|
||||||
.on_eos = stream_on_eos,
|
.on_eos = stream_on_eos,
|
||||||
};
|
};
|
||||||
stream_init(&s->stream, s->server.video_socket, &stream_cbs, NULL);
|
stream_init(&s->stream, s->server.video_socket, &stream_cbs, NULL);
|
||||||
|
Reference in New Issue
Block a user