Commit 7351430d authored by Damien Fouilleul's avatar Damien Fouilleul

- voutgl.m: added OpenGL provider for MacOS X Safari/mozilla plugin

- vlcshell.cpp: make opengl the default video output module for macosx
- vlc.r: remove Quicktime mimetype from supported list
- configure.ac: the OpenGL provider requires the AGL framework
parent d1ae6b84
...@@ -4752,11 +4752,11 @@ AC_ARG_ENABLE(macosx, ...@@ -4752,11 +4752,11 @@ AC_ARG_ENABLE(macosx,
[if test "${enable_macosx}" = "yes" [if test "${enable_macosx}" = "yes"
then then
VLC_ADD_BUILTINS([macosx]) VLC_ADD_BUILTINS([macosx])
VLC_ADD_LDFLAGS([macosx],[-framework IOKit -framework Cocoa -framework Carbon -framework QuickTime -lobjc -ObjC -framework OpenGL]) VLC_ADD_LDFLAGS([macosx],[-framework IOKit -framework Cocoa -framework Carbon -framework QuickTime -lobjc -ObjC -framework OpenGL -framework AGL])
fi], fi],
[AC_CHECK_HEADERS(Cocoa/Cocoa.h, [AC_CHECK_HEADERS(Cocoa/Cocoa.h,
VLC_ADD_BUILTINS([macosx]) VLC_ADD_BUILTINS([macosx])
VLC_ADD_LDFLAGS([macosx],[-framework IOKit -framework Cocoa -framework Carbon -framework QuickTime -lobjc -ObjC -framework OpenGL]) VLC_ADD_LDFLAGS([macosx],[-framework IOKit -framework Cocoa -framework Carbon -framework QuickTime -lobjc -ObjC -framework OpenGL -framework AGL])
)]) )])
CFLAGS=$ORIGCFLAGS CFLAGS=$ORIGCFLAGS
......
This diff is collapsed.
...@@ -13,7 +13,7 @@ data 'carb' (0) ...@@ -13,7 +13,7 @@ data 'carb' (0)
resource 'STR#' (126) resource 'STR#' (126)
{ {
{ {
"Version 0.8.5, Copyright 2006, The VideoLAN Team" "Version 0.8.6, Copyright 2006, The VideoLAN Team"
"<BR><A HREF='http://www.videolan.org'>http://www.videolan.org</A>", "<BR><A HREF='http://www.videolan.org'>http://www.videolan.org</A>",
"VLC Multimedia Plugin" "VLC Multimedia Plugin"
}; };
...@@ -34,7 +34,7 @@ resource 'STR#' (127) ...@@ -34,7 +34,7 @@ resource 'STR#' (127)
"MPEG-4 video", "MPEG-4 video",
"MPEG-4 video", "MPEG-4 video",
"AVI video", "AVI video",
"QuickTime video", /* "QuickTime video", */
"Ogg stream", "Ogg stream",
"Ogg stream", "Ogg stream",
"VLC plugin", "VLC plugin",
...@@ -63,7 +63,7 @@ resource 'STR#' (128,"MIME Type") ...@@ -63,7 +63,7 @@ resource 'STR#' (128,"MIME Type")
"application/mpeg4-iod", "mp4,mpg4", "application/mpeg4-iod", "mp4,mpg4",
"application/mpeg4-muxcodetable", "mp4,mpg4", "application/mpeg4-muxcodetable", "mp4,mpg4",
"video/x-msvideo", "avi", "video/x-msvideo", "avi",
"video/quicktime", "mov, qt", /* "video/quicktime", "mov, qt", */
"application/ogg", "ogg", "application/ogg", "ogg",
"application/x-ogg", "ogg", "application/x-ogg", "ogg",
"application/x-vlc-plugin", "vlc", "application/x-vlc-plugin", "vlc",
......
...@@ -82,7 +82,7 @@ static void Resize( Widget w, XtPointer closure, XEvent *event ); ...@@ -82,7 +82,7 @@ static void Resize( Widget w, XtPointer closure, XEvent *event );
* MacOS-only declarations * MacOS-only declarations
******************************************************************************/ ******************************************************************************/
#ifdef XP_MACOSX #ifdef XP_MACOSX
# define VOUT_PLUGINS "macosx,dummy" # define VOUT_PLUGINS "opengl,macosx,dummy"
# define AOUT_PLUGINS "auhal,macosx,dummy" # define AOUT_PLUGINS "auhal,macosx,dummy"
#endif #endif
...@@ -204,10 +204,6 @@ int16 NPP_HandleEvent( NPP instance, void * event ) ...@@ -204,10 +204,6 @@ int16 NPP_HandleEvent( NPP instance, void * event )
case updateEvt: case updateEvt:
{ {
NPWindow *npwindow = p_plugin->window; NPWindow *npwindow = p_plugin->window;
NP_Port *npport = (NP_Port *)(npwindow->window);
SetPort( npport->port );
//SetOrigin( npport->portx , npport->porty);
/* draw the beautiful "No Picture" */ /* draw the beautiful "No Picture" */
...@@ -236,6 +232,10 @@ int16 NPP_HandleEvent( NPP instance, void * event ) ...@@ -236,6 +232,10 @@ int16 NPP_HandleEvent( NPP instance, void * event )
return true; return true;
case NPEventType_AdjustCursorEvent: case NPEventType_AdjustCursorEvent:
return false; return false;
case NPEventType_MenuCommandEvent:
return false;
case NPEventType_ClippingChangedEvent:
return false;
case NPEventType_ScrollingBeginsEvent: case NPEventType_ScrollingBeginsEvent:
case NPEventType_ScrollingEndsEvent: case NPEventType_ScrollingEndsEvent:
return true; return true;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment