From: Sean C. <sec...@pa...> - 2001-10-23 00:22:00
|
This probably violates some sort of data integrity... or memory... or something else... but it works... I don't know what the code actually does... as it was copied and pasted from 2 different files... in 'xitk/lirc.c' there is a bit of code after the huge case statement that needs to be fixed... it is commented out... the block begins with 'if (uc) {' about line 233... replace that block with the following... if(uc) { /* * Check here if the unknown IR order match with * ID of one of input plugins. */ int i, num_plugins; char **autoplay_plugins = xine_get_autoplay_input_plugin_ids(gGui->xine); for (i = 0; autoplay_plugins[i] != NULL; i++) { if (!strcasecmp(autoplay_plugins[i], uc)) { int num_mrls; char **autoplay_mrls = xine_get_autoplay_mrls (gGui->xine, autoplay_plugins[i], &num_mrls); if(autoplay_mrls) { int j; for (j=0; j<num_mrls; j++) gGui->playlist[gGui->playlist_num + j] = autoplay_mrls[j]; gGui->playlist_num += j; gGui->playlist_cur = 0; gui_set_current_mrl(gGui->playlist[gGui->playlist_cur]); } } } } |