• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

hardware/intel/common/libva


Commit MetaInfo

修訂c9005f89e43f56c58e2269a896eb3b6c3bb2bc32 (tree)
時間2017-06-12 14:52:11
作者Giuseppe <giuscri@gmai...>
CommiterXiang, Haihao

Log Message

Fix small typos.

/etc/libav.conf was spelled incorrectly,
some lines were bad indented because of
mixed tabs and spaces.

Signed-off-by: Giuseppe <giuscri@gmail.com>
(cherry picked from commit 5f93344df466a81ba1388ae6802bb55d1fbad0b2)

Change Summary

差異

--- a/va/va.c
+++ b/va/va.c
@@ -60,7 +60,7 @@
6060
6161 /*
6262 * read a config "env" for libva.conf or from environment setting
63- * liva.conf has higher priority
63+ * libva.conf has higher priority
6464 * return 0: the "env" is set, and the value is copied into env_value
6565 * 1: the env is not set
6666 */
@@ -75,13 +75,13 @@ int va_parseConfig(char *env, char *env_value)
7575
7676 fp = fopen("/etc/libva.conf", "r");
7777 while (fp && (fgets(oneline, 1024, fp) != NULL)) {
78- if (strlen(oneline) == 1)
79- continue;
78+ if (strlen(oneline) == 1)
79+ continue;
8080 token = strtok_r(oneline, "=\n", &saveptr);
81- value = strtok_r(NULL, "=\n", &saveptr);
81+ value = strtok_r(NULL, "=\n", &saveptr);
8282
83- if (NULL == token || NULL == value)
84- continue;
83+ if (NULL == token || NULL == value)
84+ continue;
8585
8686 if (strcmp(token, env) == 0) {
8787 if (env_value) {