[MPlayer-cvslog] r38636 - in trunk: libmpcodecs/ad_spdif.c libmpdemux/muxer_lavf.c libvo/osx_common.h libvo/osx_objc_common.m

reimar subversion at mplayerhq.hu
Wed Jul 3 11:42:57 EEST 2024


Author: reimar
Date: Wed Jul  3 11:42:56 2024
New Revision: 38636

Log:
Some trivial compile fixes for newer compilers.

Modified:
   trunk/libmpcodecs/ad_spdif.c
   trunk/libmpdemux/muxer_lavf.c
   trunk/libvo/osx_common.h
   trunk/libvo/osx_objc_common.m

Modified: trunk/libmpcodecs/ad_spdif.c
==============================================================================
--- trunk/libmpcodecs/ad_spdif.c	Tue Jun 25 15:37:16 2024	(r38635)
+++ trunk/libmpcodecs/ad_spdif.c	Wed Jul  3 11:42:56 2024	(r38636)
@@ -54,7 +54,7 @@ static int read_packet(void *p, uint8_t
     return 0;
 }
 
-static int write_packet(void *p, uint8_t *buf, int buf_size)
+static int write_packet(void *p, const uint8_t *buf, int buf_size)
 {
     int len;
     struct spdifContext *ctx = p;

Modified: trunk/libmpdemux/muxer_lavf.c
==============================================================================
--- trunk/libmpdemux/muxer_lavf.c	Tue Jun 25 15:37:16 2024	(r38635)
+++ trunk/libmpdemux/muxer_lavf.c	Wed Jul  3 11:42:56 2024	(r38636)
@@ -77,7 +77,7 @@ const m_option_t lavfopts_conf[] = {
 	{NULL, NULL, 0, 0, 0, 0, NULL}
 };
 
-static int mp_write(void *opaque, uint8_t *buf, int size)
+static int mp_write(void *opaque, const uint8_t *buf, int size)
 {
 	muxer_t *muxer = opaque;
 	return stream_write_buffer(muxer->stream, buf, size);

Modified: trunk/libvo/osx_common.h
==============================================================================
--- trunk/libvo/osx_common.h	Tue Jun 25 15:37:16 2024	(r38635)
+++ trunk/libvo/osx_common.h	Wed Jul  3 11:42:56 2024	(r38636)
@@ -19,6 +19,8 @@
 #ifndef MPLAYER_OSX_COMMON_H
 #define MPLAYER_OSX_COMMON_H
 
+struct MPGLContext;
+
 int convert_key(unsigned key, unsigned charcode);
 void change_movie_aspect(float new_aspect);
 void config_movie_aspect(float config_aspect);
@@ -32,6 +34,6 @@ void vo_osx_ontop(void);
 void vo_osx_fullscreen(void);
 int vo_osx_check_events(void);
 void vo_osx_update_xinerama_info(void);
-void vo_osx_swap_buffers(void);
+void vo_osx_swap_buffers(struct MPGLContext *);
 
 #endif /* MPLAYER_OSX_COMMON_H */

Modified: trunk/libvo/osx_objc_common.m
==============================================================================
--- trunk/libvo/osx_objc_common.m	Tue Jun 25 15:37:16 2024	(r38635)
+++ trunk/libvo/osx_objc_common.m	Wed Jul  3 11:42:56 2024	(r38636)
@@ -113,7 +113,7 @@ void vo_osx_update_xinerama_info(void)
     [oglv update_screen_info];
 }
 
-void vo_osx_swap_buffers(void)
+void vo_osx_swap_buffers(struct MPGLContext *)
 {
     [oglv->glContext flushBuffer];
 }


More information about the MPlayer-cvslog mailing list