I encounter a problem while trying to use a AviPlayer2 Object in another
program.  If I supply null widget or a simple "fake" widget, the player 
locks up when I try to fullscreen, and sometimes when I resize.
In the case of maximized, it locks up while doing:
        screen = SDL_SetVideoMode(dim_w, dim_h, bit_depth, fs); 
in renderer.cpp in doResize function of YUVRenderer.
Fullscreen without scaling produces similar effect.  I have found that a 
workaround for the bug is the start a new thread to issue the 
ToggleFullscreen/Resize methods of AviPlayer2 class, if the call comes 
from within the normal thread, the deadlock seems to be triggered.
I'm not sure if this is avifile's fault or SDL 1.2.0's fault, if anyone 
knows better, I'd like to be enlightened...

I would also like to suggest adding a method to the AviPlayer2 class for
setting title on the video renderer window.  Just another thing to help 
people integrate smoothly the aviplayer2 class into a third-party program.

Another issue is that while most everything can be nicely overridden when 
used in another program, the left mouse click seems to be hardcoded to 
pause playback.  It'd be nice to be able to override that behavior too, 
if we want :)

Also, I have noticed on some systems, avifile seems to only pay 
attention to horizontal resizing and uses the aspect ratio to resize the 
vertical, so that any vertical movement is ignored.  I would think the 
more appropriate strategy if attempting to do aspect-correct resizing 
would be to examine both the horizontal and vertical and take the largest 
if both are above 1, or the smallest if both below 1.  If one below and 
one above, I'm not sure what you'd do...

In addition, it would be nice to have a way of specifying that we do not want 
aspect correction, for there are circumstances where preserving aspect is 
either not desired or not acheived through this kind of method (i.e. resolution
and/or monitor may not be standard)




_______________________________________________
Avifile mailing list
[EMAIL PROTECTED]
http://prak.org/mailman/listinfo/avifile

Reply via email to