drop VEEJAY_SET_CPU, does not work (anymore) . Fix composite mode bug in switching samples

git-svn-id: svn://code.dyne.org/veejay/trunk@1287 eb8d1916-c9e9-0310-b8de-cf0c9472ead5
This commit is contained in:
Niels Elburg
2008-12-30 17:30:49 +00:00
parent f97a97d291
commit 23fb2e90e9
4 changed files with 17 additions and 88 deletions

View File

@@ -1433,12 +1433,20 @@ int sample_load_composite_config( void *compiz, int s1 )
int val = 0;
void *temp = composite_load_config( compiz, sample->viewport_config , &val );
if( temp == NULL || val == -1 )
if( temp == NULL || val == -1 ) {
#ifdef STRICT_CHECKING
veejay_msg(VEEJAY_MSG_DEBUG,"No composite config for sample %d",s1);
#endif
return 0;
}
sample->composite = val;
sample->viewport = temp;
sample_update(sample,s1);
#ifdef STRICT_CHECKING
veejay_msg(VEEJAY_MSG_DEBUG, "Loaded config for sample %d, mode %d",
s1, val );
#endif
return sample->composite;
}