[MPlayer-cvslog] r38209 - trunk/libvo/vo_corevideo.m

reimar subversion at mplayerhq.hu
Tue Dec 29 12:58:51 EET 2020


Author: reimar
Date: Tue Dec 29 12:58:51 2020
New Revision: 38209

Log:
vo_corevideo: Fix it so it updates the screen on modern macOS.

However it is still super-slow, so it might make much more
sense to make vo_gl the default, unless it is easy to fix.

Modified:
   trunk/libvo/vo_corevideo.m

Modified: trunk/libvo/vo_corevideo.m
==============================================================================
--- trunk/libvo/vo_corevideo.m	Tue Dec 29 12:33:14 2020	(r38208)
+++ trunk/libvo/vo_corevideo.m	Tue Dec 29 12:58:51 2020	(r38209)
@@ -19,6 +19,8 @@
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
+#define GL_SILENCE_DEPRECATION
+
 #import "vo_corevideo.h"
 #include <sys/types.h>
 #include <sys/ipc.h>
@@ -244,6 +246,7 @@ static void flip_page(void)
 			image_page = 1 - image_page;
 			image_data = image_datas[image_page];
 		}
+		[mpGLView display];
 	}
 }
 
@@ -458,6 +461,7 @@ static int control(uint32_t request, voi
 */
 - (void)prepareOpenGL
 {
+	[super prepareOpenGL];
 	glEnable(GL_BLEND);
 	glDisable(GL_DEPTH_TEST);
 	glDepthMask(GL_FALSE);


More information about the MPlayer-cvslog mailing list