[Mplayer-cvslog] CVS: main/loader/dshow DS_VideoDecoder.c,1.20,1.21

Arpi of Ize arpi at mplayerhq.hu
Fri Jul 26 00:14:02 CEST 2002


Update of /cvsroot/mplayer/main/loader/dshow
In directory mail:/var/tmp.root/cvs-serv9551

Modified Files:
	DS_VideoDecoder.c 
Log Message:
SetValue: ignore case of 'item'


Index: DS_VideoDecoder.c
===================================================================
RCS file: /cvsroot/mplayer/main/loader/dshow/DS_VideoDecoder.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- DS_VideoDecoder.c	23 Jun 2002 16:03:08 -0000	1.20
+++ DS_VideoDecoder.c	25 Jul 2002 22:13:59 -0000	1.21
@@ -749,15 +749,15 @@
 	    printf("No such interface\n");
 	    return -1;
 	}
-	if (strcmp(name, "Postprocessing") == 0)
+	if (strcasecmp(name, "Postprocessing") == 0)
 	    pIDivx->vt->put_PPLevel(pIDivx, value * 10);
-	else if (strcmp(name, "Brightness") == 0)
+	else if (strcasecmp(name, "Brightness") == 0)
 	    pIDivx->vt->put_Brightness(pIDivx, value);
-	else if (strcmp(name, "Contrast") == 0)
+	else if (strcasecmp(name, "Contrast") == 0)
 	    pIDivx->vt->put_Contrast(pIDivx, value);
-	else if (strcmp(name, "Saturation") == 0)
+	else if (strcasecmp(name, "Saturation") == 0)
 	    pIDivx->vt->put_Saturation(pIDivx, value);
-	else if (strcmp(name, "MaxAuto") == 0)
+	else if (strcasecmp(name, "MaxAuto") == 0)
             this->m_iMaxAuto = value;
 	pIDivx->vt->Release((IUnknown*)pIDivx);
 	//printf("Set %s  %d\n", name, value);
@@ -782,21 +782,21 @@
 // get5=set4 19
 	// get6=set5 23
     	hidden = (IHidden*)((int)this->m_pDS_Filter->m_pFilter + 0xb8);
-//	printf("DS_SetValue for DIVX, name=%s  value=%d\n",name,value);
-	if (strcmp(name, "Quality") == 0)
+	printf("DS_SetValue for DIVX, name=%s  value=%d\n",name,value);
+	if (strcasecmp(name, "Quality") == 0)
 	{
             this->m_iLastQuality = value;
 	    return hidden->vt->SetSmth(hidden, value, 0);
 	}
-	if (strcmp(name, "Brightness") == 0)
+	if (strcasecmp(name, "Brightness") == 0)
 	    return hidden->vt->SetSmth2(hidden, value, 0);
-	if (strcmp(name, "Contrast") == 0)
+	if (strcasecmp(name, "Contrast") == 0)
 	    return hidden->vt->SetSmth3(hidden, value, 0);
-	if (strcmp(name, "Saturation") == 0)
+	if (strcasecmp(name, "Saturation") == 0)
 	    return hidden->vt->SetSmth4(hidden, value, 0);
-	if (strcmp(name, "Hue") == 0)
+	if (strcasecmp(name, "Hue") == 0)
 	    return hidden->vt->SetSmth5(hidden, value, 0);
-	if (strcmp(name, "MaxAuto") == 0)
+	if (strcasecmp(name, "MaxAuto") == 0)
 	{
             this->m_iMaxAuto = value;
 	}
@@ -853,7 +853,7 @@
 
 int DS_SetAttr_DivX(char* attribute, int value){
     int result, status, newkey, count;
-        if(strcmp(attribute, "Quality")==0){
+        if(strcasecmp(attribute, "Quality")==0){
 	    char* keyname="SOFTWARE\\Microsoft\\Scrunch";
     	    result=RegCreateKeyExA(HKEY_CURRENT_USER, keyname, 0, 0, 0, 0, 0,	   		&newkey, &status);
             if(result!=0)
@@ -879,10 +879,10 @@
 	}   	
 
         if(
-	(strcmp(attribute, "Saturation")==0) ||
-	(strcmp(attribute, "Hue")==0) ||
-	(strcmp(attribute, "Contrast")==0) ||
-	(strcmp(attribute, "Brightness")==0)
+	(strcasecmp(attribute, "Saturation")==0) ||
+	(strcasecmp(attribute, "Hue")==0) ||
+	(strcasecmp(attribute, "Contrast")==0) ||
+	(strcasecmp(attribute, "Brightness")==0)
 	)
         {
 	    char* keyname="SOFTWARE\\Microsoft\\Scrunch\\Video";




More information about the MPlayer-cvslog mailing list