From: Dennis S. <sy...@yo...> - 2004-07-02 11:43:35
|
Duilio, thanks for your HAVE_ALLOCATED_BUFFER work! Following: int visual_video_set_buffer (VisVideo *video, void *buffer) { visual_log_return_val_if_fail (video != NULL, -1); if (HAVE_ALLOCATED_BUFFER (video)) { visual_log (VISUAL_LOG_CRITICAL, "Trying to set a screen buffer on " "a VisVideo structure which points to an external screen buffer"); return -1; } video->screenbuffer = buffer; return 0; } Why is it illegal to set a screen buffer on a Visvideo which points to an external screen buffer ? Also, please have a space between everything and '('. Cheers and thanks a lot!, Dennis |