From 77980701381950210fc3c21dcd9ea225b889a8b6 Mon Sep 17 00:00:00 2001 From: peijiankang Date: Wed, 26 Feb 2025 16:15:48 +0800 Subject: [PATCH] update 0001-add-opengl-api-for-mpv-0.35.patch (cherry picked from commit ba481c7286a4b05377300fab10769861ba75b21a) --- 0001-add-opengl-api-for-mpv-0.35.patch | 14 +++++++------- mpv.spec | 5 ++++- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/0001-add-opengl-api-for-mpv-0.35.patch b/0001-add-opengl-api-for-mpv-0.35.patch index cbf3fb2..e7fdc14 100644 --- a/0001-add-opengl-api-for-mpv-0.35.patch +++ b/0001-add-opengl-api-for-mpv-0.35.patch @@ -82,7 +82,7 @@ index fb10e5e..afb7510 100644 + * + * @deprecated use render.h + */ -+void *mpv_get_sub_api(mpv_handle *ctx, mpv_sub_api sub_api); ++MPV_EXPORT void *mpv_get_sub_api(mpv_handle *ctx, mpv_sub_api sub_api); + #endif @@ -340,7 +340,7 @@ index 0000000..6820681 + * redrawn + * @param callback_ctx opaque argument to the callback + */ -+void mpv_opengl_cb_set_update_callback(mpv_opengl_cb_context *ctx, ++MPV_EXPORT void mpv_opengl_cb_set_update_callback(mpv_opengl_cb_context *ctx, + mpv_opengl_cb_update_fn callback, + void *callback_ctx); + @@ -374,7 +374,7 @@ index 0000000..6820681 + * (or required extensions are missing) + * MPV_ERROR_INVALID_PARAMETER: the OpenGL state was already initialized + */ -+int mpv_opengl_cb_init_gl(mpv_opengl_cb_context *ctx, const char *exts, ++MPV_EXPORT int mpv_opengl_cb_init_gl(mpv_opengl_cb_context *ctx, const char *exts, + mpv_opengl_cb_get_proc_address_fn get_proc_address, + void *get_proc_address_ctx); + @@ -407,7 +407,7 @@ index 0000000..6820681 + * frame will be rendered flipped. + * @return 0 + */ -+int mpv_opengl_cb_draw(mpv_opengl_cb_context *ctx, int fbo, int w, int h); ++MPV_EXPORT int mpv_opengl_cb_draw(mpv_opengl_cb_context *ctx, int fbo, int w, int h); + +/** + * Deprecated. Use mpv_opengl_cb_draw(). This function is equivalent to: @@ -420,7 +420,7 @@ index 0000000..6820681 + * This function will be removed in the future without version bump (this API + * was never marked as stable). + */ -+int mpv_opengl_cb_render(mpv_opengl_cb_context *ctx, int fbo, int vp[4]); ++MPV_EXPORT int mpv_opengl_cb_render(mpv_opengl_cb_context *ctx, int fbo, int vp[4]); + +/** + * Tell the renderer that a frame was flipped at the given time. This is @@ -436,7 +436,7 @@ index 0000000..6820681 + * Currently, this parameter is ignored. + * @return error code + */ -+int mpv_opengl_cb_report_flip(mpv_opengl_cb_context *ctx, int64_t time); ++MPV_EXPORT int mpv_opengl_cb_report_flip(mpv_opengl_cb_context *ctx, int64_t time); + +/** + * Destroy the mpv OpenGL state. @@ -448,7 +448,7 @@ index 0000000..6820681 + * + * @return error code + */ -+int mpv_opengl_cb_uninit_gl(mpv_opengl_cb_context *ctx); ++MPV_EXPORT int mpv_opengl_cb_uninit_gl(mpv_opengl_cb_context *ctx); + +#ifdef __cplusplus +} diff --git a/mpv.spec b/mpv.spec index e2fba81..430df5d 100644 --- a/mpv.spec +++ b/mpv.spec @@ -1,6 +1,6 @@ Name: mpv Version: 0.36.0 -Release: 2 +Release: 3 Summary: Movie player playing most video formats and DVDs License: GPL-2.0-or-later AND LGPL-2.1-or-later URL: http://mpv.io/ @@ -152,6 +152,9 @@ install -Dpm 644 README.md etc/input.conf etc/mpv.conf -t %{buildroot}%{_docdir} %{_libdir}/pkgconfig/mpv.pc %changelog +* Wed Feb 26 2025 peijiankang - 0.36.0-3 +- update 0001-add-opengl-api-for-mpv-0.35.patch + * Fri Jan 17 2025 peijiankang - 0.36.0-2 - fix build error -- Gitee