From: Dennis B. <db...@zi...> - 2001-09-03 22:20:48
|
On Mon, 3 Sep 2001, Brian J. Conway wrote: > > dates in mmddyy format (yes, I am a yankee). here is the link to the > > CSS DVD plugin for use with Xine 0.5.2: > > > > http://www.geocities.com/captain_css/xine_d4d_plugin-0.2.0.tar.gz > > Actually, you'll want the 0.2.2 plugin that's updated for 0.5.2, it's the > first one at the top of the page. Even the 0.2.2 plug seems to have some problem with subtitles. Here is what I did to fix it: --- xine_d4d_plugin-0.2.2/src/input/input_dvd.c Mon Sep 3 01:43:47 2001 +++ xine_d4d_plugin-0.2.1/src/input/input_dvd.c Tue Sep 4 00:14:08 2001 @@ -968,15 +968,19 @@ static int dvd_plugin_get_optional_data (input_plugin_t *this_gen, void *data, int data_type) { dvd_input_plugin_t *this = (dvd_input_plugin_t *) this_gen; + void *ptr; switch(data_type) { case INPUT_OPTIONAL_DATA_CLUT: - data = (void *)ifoGetCLUT(this->pgci); - if(data) - return INPUT_OPTIONAL_SUCCESS; - else - return INPUT_OPTIONAL_UNSUPPORTED; + ptr = (void *)ifoGetCLUT(this->pgci); + + if(ptr) { + memcpy(data, ptr, sizeof(clut_t)*16); + return INPUT_OPTIONAL_SUCCESS; + } else { + return INPUT_OPTIONAL_UNSUPPORTED; + } break; /* case INPUT_OPTIONAL_DATA_AUDIOLANG: -- /Dennis |