From 1f5caf1867e1a3e020f60d29b6e5513abc4e53c4 Mon Sep 17 00:00:00 2001 From: diego Date: Mon, 8 Dec 2008 00:02:07 +0000 Subject: #include appropriate headers instead of locally declaring function prototypes. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28109 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_macosx.m | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'libvo/vo_macosx.m') diff --git a/libvo/vo_macosx.m b/libvo/vo_macosx.m index 3097651dfa..41e3663ce5 100644 --- a/libvo/vo_macosx.m +++ b/libvo/vo_macosx.m @@ -25,6 +25,8 @@ #include "aspect.h" #include "mp_msg.h" #include "m_option.h" +#include "mp_fifo.h" +#include "libvo/sub.h" #include "input/input.h" #include "input/mouse.h" @@ -85,9 +87,6 @@ static vo_info_t info = LIBVO_EXTERN(macosx) -void mplayer_put_key(int code); -void vo_draw_text(int dxs,int dys,void (*draw_alpha)(int x0,int y0, int w,int h, unsigned char* src, unsigned char *srca, int stride)); - static void draw_alpha(int x0, int y0, int w, int h, unsigned char *src, unsigned char *srca, int stride) { switch (image_format) -- cgit v1.2.3 From 4c7dc59a041f5385988afcaac760ffe441d6f609 Mon Sep 17 00:00:00 2001 From: diego Date: Mon, 8 Dec 2008 00:11:03 +0000 Subject: Remove unused variable, fixes the warning: libvo/vo_macosx.m:735: warning: unused variable 'lastTime' git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28110 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_macosx.m | 1 - 1 file changed, 1 deletion(-) (limited to 'libvo/vo_macosx.m') diff --git a/libvo/vo_macosx.m b/libvo/vo_macosx.m index 41e3663ce5..0eabb68e6e 100644 --- a/libvo/vo_macosx.m +++ b/libvo/vo_macosx.m @@ -732,7 +732,6 @@ static int control(uint32_t request, void *data, ...) - (void) render { int curTime; - static int lastTime = 0; glClear(GL_COLOR_BUFFER_BIT); -- cgit v1.2.3 From 9bdda2ec4905597008145042f0ee189d48f6f074 Mon Sep 17 00:00:00 2001 From: diego Date: Mon, 8 Dec 2008 00:12:53 +0000 Subject: Add missing unistd.h #include, fixes the warning: libvo/vo_macosx.m:177: warning: implicit declaration of function 'ftruncate' git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28111 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_macosx.m | 1 + 1 file changed, 1 insertion(+) (limited to 'libvo/vo_macosx.m') diff --git a/libvo/vo_macosx.m b/libvo/vo_macosx.m index 0eabb68e6e..fc58d52ef9 100644 --- a/libvo/vo_macosx.m +++ b/libvo/vo_macosx.m @@ -10,6 +10,7 @@ #include #include #include +#include #include //special workaround for Apple bug #6267445 //(OSServices Power API disabled in OSServices.h for 64bit systems) -- cgit v1.2.3