blob: 26e104d3163ae5313d1d95ad5c013fe596766609 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
$NetBSD: patch-aa,v 1.3 2005/05/31 21:33:11 kristerw Exp $
--- src/post.c.orig Tue May 31 23:11:08 2005
+++ src/post.c Tue May 31 23:12:30 2005
@@ -81,6 +81,7 @@
const xine_post_in_t *in = xine_post_input (plugin, "parameters");
const xine_post_api_t *api;
const xine_post_api_descr_t *param_desc;
+ char *params;
if (!in)
return NULL;
@@ -88,7 +89,7 @@
api = in->data;
param_desc = api->get_param_descr ();
- char *params = malloc (param_desc->struct_size);
+ params = malloc (param_desc->struct_size);
api->get_parameters (plugin, params);
for (;;)
@@ -494,9 +495,10 @@
while ((++param)->type != POST_PARAM_TYPE_LAST)
{
GtkWidget *widget;
+ gpointer param_p;
info->conf_w = realloc (info->conf_w,
(param_count + 2) * sizeof (GtkWidget *));
- gpointer param_p = info->params + param->offset;
+ param_p = info->params + param->offset;
switch (param->type)
{
case POST_PARAM_TYPE_INT:
|