Skip to content

Commit 09c95b8

Browse files
committed
update
1 parent b11308b commit 09c95b8

File tree

7 files changed

+20
-12
lines changed

7 files changed

+20
-12
lines changed

KikoPlay使用说明.pdf

-1.86 KB
Binary file not shown.

Play/Video/mpv/client.h

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@
2727
#include <stdint.h>
2828

2929
/* New symbols must still be added to libmpv/mpv.def. */
30-
#if defined(__GNUC__) || defined(__clang__)
31-
#define MPV_EXPORT __attribute__((visibility("default")))
32-
#elif defined(_MSC_VER)
30+
#ifdef _WIN32
3331
#define MPV_EXPORT __declspec(dllexport)
32+
#elif defined(__GNUC__) || defined(__clang__)
33+
#define MPV_EXPORT __attribute__((visibility("default")))
3434
#else
3535
#define MPV_EXPORT
3636
#endif
@@ -152,8 +152,6 @@ extern "C" {
152152
* - Using UNIX IPC (off by default) will override the SIGPIPE signal handler,
153153
* and set it to SIG_IGN. Some invocations of the "subprocess" command will
154154
* also do that.
155-
* - mpv will reseed the legacy C random number generator by calling srand() at
156-
* some random point once.
157155
* - mpv may start sub processes, so overriding SIGCHLD, or waiting on all PIDs
158156
* (such as calling wait()) by the parent process or any other library within
159157
* the process must be avoided. libmpv itself only waits for its own PIDs.
@@ -242,7 +240,7 @@ extern "C" {
242240
* relational operators (<, >, <=, >=).
243241
*/
244242
#define MPV_MAKE_VERSION(major, minor) (((major) << 16) | (minor) | 0UL)
245-
#define MPV_CLIENT_API_VERSION MPV_MAKE_VERSION(2, 0)
243+
#define MPV_CLIENT_API_VERSION MPV_MAKE_VERSION(2, 1)
246244

247245
/**
248246
* The API user is allowed to "#define MPV_ENABLE_DEPRECATED 0" before
@@ -1070,6 +1068,16 @@ MPV_EXPORT int mpv_set_property(mpv_handle *ctx, const char *name, mpv_format fo
10701068
*/
10711069
MPV_EXPORT int mpv_set_property_string(mpv_handle *ctx, const char *name, const char *data);
10721070

1071+
/**
1072+
* Convenience function to delete a property.
1073+
*
1074+
* This is equivalent to running the command "del [name]".
1075+
*
1076+
* @param name The property name. See input.rst for a list of properties.
1077+
* @return error code
1078+
*/
1079+
MPV_EXPORT int mpv_del_property(mpv_handle *ctx, const char *name);
1080+
10731081
/**
10741082
* Set a property asynchronously. You will receive the result of the operation
10751083
* as MPV_EVENT_SET_PROPERTY_REPLY event. The mpv_event.error field will contain

Play/Video/mpv/stream_cb.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,8 @@ typedef int (*mpv_stream_cb_open_ro_fn)(void *user_data, char *uri,
230230
* callback.
231231
* @return error code
232232
*/
233-
int mpv_stream_cb_add_ro(mpv_handle *ctx, const char *protocol, void *user_data,
234-
mpv_stream_cb_open_ro_fn open_fn);
233+
MPV_EXPORT int mpv_stream_cb_add_ro(mpv_handle *ctx, const char *protocol, void *user_data,
234+
mpv_stream_cb_open_ro_fn open_fn);
235235

236236
#ifdef __cplusplus
237237
}

UI/player.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -566,14 +566,14 @@ PlayerWindow::PlayerWindow(QWidget *parent) : QWidget(parent),autoHideControlPan
566566
//QHBoxLayout *buttonHLayout=new QHBoxLayout(btnContainer);
567567

568568
//buttonHLayout->addWidget(timeLabel);
569-
buttonHLayout->addStretch(8);
569+
buttonHLayout->addStretch(3);
570570
buttonHLayout->addWidget(stop);
571571
buttonHLayout->addWidget(prev);
572572
buttonHLayout->addWidget(playPause);
573573
buttonHLayout->addWidget(next);
574574
buttonHLayout->addWidget(mute);
575575
buttonHLayout->addWidget(volume);
576-
buttonHLayout->addStretch(3);
576+
buttonHLayout->addStretch(2);
577577
buttonHLayout->addWidget(launch);
578578
buttonHLayout->addWidget(setting);
579579
buttonHLayout->addWidget(danmu);

lib/x64/libmpv.dll.lib

195 KB
Binary file not shown.

newVersion/version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"Version":"0.9.2",
2+
"Version":"0.9.3",
33
"URL":"https://pan.baidu.com/s/1gyT0FU9rioaa77znhAUx2w#list/path=%2FKikoPlay%2F0.4&parentPath=%2F"
44
}

res/about

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
KikoPlay 基于这些项目:
22
Qt 5.15.2
3-
libmpv 0.34.0
3+
libmpv 0.35.0
44
aria2 1.34
55
Qt-Nice-Frameless-Window
66
zlib 1.2.11

0 commit comments

Comments
 (0)