- //CGrafPtr oldPort;
- //Rect oldBounds;
-
- /* since there is not way to lock a QuickDraw port for exclusive use
- there is a potential problem that the frame will be displayed
- in the wrong place if other embedded plugins redraws as the port
- origin may be changed */
- //GetPort(&oldPort);
- //GetPortBounds(p_vout->p_sys->p_qdport, &oldBounds);
- SetPort(p_vout->p_sys->p_qdport);
- SetOrigin(p_vout->p_sys->i_origx, p_vout->p_sys->i_origy);
- if( ( err = DecompressSequenceFrameWhen(
- p_vout->p_sys->i_seq,
- p_pic->p_sys->p_data,
- p_pic->p_sys->i_size,
- codecFlagUseImageBuffer, &flags, NULL, NULL ) == noErr ) )
- {
- QDFlushPortBuffer( p_vout->p_sys->p_qdport, p_vout->p_sys->clip_mask );
- //QDFlushPortBuffer( p_vout->p_sys->p_qdport, NULL );
- }
- else
- {
- msg_Warn( p_vout, "QT failed to display the frame sequence: %d", err );
- }
- //SetPortBounds(p_vout->p_sys->p_qdport, &oldBounds);
- //SetPort(oldPort);
+ //CGrafPtr oldPort;
+ //Rect oldBounds;
+
+ /* since there is not way to lock a QuickDraw port for exclusive use
+ there is a potential problem that the frame will be displayed
+ in the wrong place if other embedded plugins redraws as the port
+ origin may be changed */
+ //GetPort(&oldPort);
+ //GetPortBounds(p_vout->p_sys->p_qdport, &oldBounds);
+ SetPort(p_vout->p_sys->p_qdport);
+ SetOrigin(p_vout->p_sys->i_origx, p_vout->p_sys->i_origy);
+ if( ( err = DecompressSequenceFrameWhen(
+ p_vout->p_sys->i_seq,
+ p_pic->p_sys->p_data,
+ p_pic->p_sys->i_size,
+ codecFlagUseImageBuffer, &flags, NULL, NULL ) == noErr ) )
+ {
+ QDFlushPortBuffer( p_vout->p_sys->p_qdport, p_vout->p_sys->clip_mask );
+ //QDFlushPortBuffer( p_vout->p_sys->p_qdport, NULL );
+ }
+ else
+ {
+ msg_Warn( p_vout, "QT failed to display the frame sequence: %d", err );
+ }
+ //SetPortBounds(p_vout->p_sys->p_qdport, &oldBounds);
+ //SetPort(oldPort);