James Delahunty
29 Jun 2005 23:27
Jon Lech Johansen, or "DVD Jon", has released a patch that will allow users of Google Video Viewer to play videos that are not hosted on Google's servers. Google has Limited the player to videos from the Google servers only, which can be seen here...
+ // Google mods
+ const char* allowed_host = "video.google.com";
+ char * host_found = strstr(p_sys->url.psz_host, allowed_host);
+ if ((host_found == NULL) ||
+ ((host_found + strlen(allowed_host)) !=
+ (p_sys->url.psz_host + strlen(p_sys->url.psz_host)))) {
+ msg_Warn( p_access, "invalid host, only video.google.com is allowed" );
+ goto error;
+ }