summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2006-09-19 07:57:21 +0000
committerphintuka <phintuka>2006-09-19 07:57:21 +0000
commitef0f08e7fd5f6db679cb207cdb69518479a05084 (patch)
tree1471891859cddaf0cd38bfaed96847d87872cc9a
parent5e238f5d57390d261b96955720e69e0bde64b076 (diff)
downloadxineliboutput-ef0f08e7fd5f6db679cb207cdb69518479a05084.tar.gz
xineliboutput-ef0f08e7fd5f6db679cb207cdb69518479a05084.tar.bz2
Don't allow changing post plugin parameters if post plugin is loaded from command line
-rw-r--r--xine/post.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/xine/post.c b/xine/post.c
index 43a1c8d0..1237c841 100644
--- a/xine/post.c
+++ b/xine/post.c
@@ -682,12 +682,18 @@ static int _pplugin_enable_post(post_plugins_t *fe, const char *name,
*found = 1;
if(args && *args) {
- char *tmp = strdup(args);
- __pplugin_update_parameters(post_elements[i]->post, tmp);
- free(tmp);
- if(post_elements[i]->args)
- free(post_elements[i]->args);
- post_elements[i]->args = strdup(args);
+ if(post_elements[i]->enable != 2) {
+ char *tmp = strdup(args);
+ __pplugin_update_parameters(post_elements[i]->post, tmp);
+ free(tmp);
+ if(post_elements[i]->args)
+ free(post_elements[i]->args);
+ post_elements[i]->args = strdup(args);
+ } else {
+ LOGDBG(" * enable post %s, parameters fixed in command line.", name);
+ LOGDBG(" requested: %s", args ? : "none");
+ LOGDBG(" using : %s", post_elements[i]->args ? : "none");
+ }
}
}