bool b_saved_frame;
NSRect s_frame;
bool b_got_frame;
- /* Mozilla plugin-related variables */
+
+ /* Mozilla plugin-related variables (not 64bit compatible) */
bool b_embedded;
+#ifndef __x86_64__
AGLContext agl_ctx;
AGLDrawable agl_drawable;
int i_offx, i_offy;
WindowGroupRef winGroup;
bool b_clipped_out;
Rect clipBounds, viewBounds;
+#endif
};
/*****************************************************************************
static int Lock ( vout_thread_t * p_vout );
static void Unlock ( vout_thread_t * p_vout );
+#ifndef __x86_64__
static int aglInit ( vout_thread_t * p_vout );
static void aglEnd ( vout_thread_t * p_vout );
static int aglManage ( vout_thread_t * p_vout );
static void aglSwap ( vout_thread_t * p_vout );
static int aglLock ( vout_thread_t * p_vout );
static void aglUnlock ( vout_thread_t * p_vout );
+#endif
int OpenVideoGL ( vlc_object_t * p_this )
{
memset( p_vout->p_sys, 0, sizeof( vout_sys_t ) );
+#ifndef __x86_64__
var_Get( p_vout->p_libvlc, "drawable-agl", &value_drawable );
if( value_drawable.i_int != 0 )
{
}
else
{
+#endif
NSAutoreleasePool *o_pool = [[NSAutoreleasePool alloc] init];
p_vout->p_sys->b_embedded = false;
p_vout->pf_swap = Swap;
p_vout->pf_lock = Lock;
p_vout->pf_unlock = Unlock;
+#ifndef __x86_64__
}
+#endif
p_vout->p_sys->b_got_frame = false;
return VLC_SUCCESS;
msg_Dbg( p_this, "Closing" );
+#ifndef __x86_64__
if( p_vout->p_sys->b_embedded )
{
if( p_vout->p_sys->agl_ctx )
[o_pool release];
}
+#else
+ if(VLCIntf && vlc_object_alive (VLCIntf))
+ {
+ NSAutoreleasePool *o_pool = [[NSAutoreleasePool alloc] init];
+
+ /* Close the window */
+ [p_vout->p_sys->o_vout_view performSelectorOnMainThread:@selector(closeVout) withObject:NULL waitUntilDone:YES];
+
+ [o_pool release];
+ }
+#endif
/* Clean up */
free( p_vout->p_sys );
}
* embedded AGL context implementation
*****************************************************************************/
+#ifndef __x86_64__
+
static void aglSetViewport( vout_thread_t *p_vout, Rect viewBounds, Rect clipBounds );
static void aglReshape( vout_thread_t * p_vout );
static OSStatus WindowEventHandler(EventHandlerCallRef nextHandler, EventRef event, void *userData);
}
}
+#endif