src/video/x11/SDL_x11yuv.c
changeset 429 c1666427297c
parent 410 365f57b7c4ac
child 434 ed58b98c0d9d
equal deleted inserted replaced
428:1338c24e30cb 429:c1666427297c
    34 #include <X11/Xlib.h>
    34 #include <X11/Xlib.h>
    35 #include <sys/ipc.h>
    35 #include <sys/ipc.h>
    36 #include <sys/shm.h>
    36 #include <sys/shm.h>
    37 #include <X11/extensions/XShm.h>
    37 #include <X11/extensions/XShm.h>
    38 #include <XFree86/extensions/Xvlib.h>
    38 #include <XFree86/extensions/Xvlib.h>
       
    39 #include <X11/Xlibint.h>
    39 
    40 
    40 #include "SDL_error.h"
    41 #include "SDL_error.h"
    41 #include "SDL_video.h"
    42 #include "SDL_video.h"
    42 #include "SDL_x11yuv_c.h"
    43 #include "SDL_x11yuv_c.h"
    43 #include "SDL_yuvfuncs.h"
    44 #include "SDL_yuvfuncs.h"
   128 				}
   129 				}
   129 			}
   130 			}
   130 		}
   131 		}
   131 		SDL_NAME(XvFreeAdaptorInfo)(ainfo);
   132 		SDL_NAME(XvFreeAdaptorInfo)(ainfo);
   132 	}
   133 	}
       
   134 
       
   135     /*
       
   136      * !!! FIXME:
       
   137      * "Here are some diffs for X11 and yuv.  Note that the last part 2nd
       
   138      *  diff should probably be a new call to XvQueryAdaptorFree with ainfo
       
   139      *  and the number of adaptors, instead of the loop through like I did."
       
   140      */
       
   141  	for ( i=0; i < adaptors; ++i ) {
       
   142  	  if (ainfo[i].name != NULL) Xfree(ainfo[i].name);
       
   143  	  if (ainfo[i].formats != NULL) Xfree(ainfo[i].formats);
       
   144    	}
       
   145  	Xfree(ainfo);
       
   146 
   133 	if ( xv_port == -1 ) {
   147 	if ( xv_port == -1 ) {
   134 		SDL_SetError("No available video ports for requested format");
   148 		SDL_SetError("No available video ports for requested format");
   135 		return(NULL);
   149 		return(NULL);
   136 	}
   150 	}
   137 
   151