Use helper method to get string from GValue.
break;
}
g_free (tcpclientsink->host);
- tcpclientsink->host = g_strdup (g_value_get_string (value));
+ tcpclientsink->host = g_value_dup_string (value);
break;
case PROP_PORT:
tcpclientsink->port = g_value_get_int (value);
break;
}
g_free (tcpclientsrc->host);
- tcpclientsrc->host = g_strdup (g_value_get_string (value));
+ tcpclientsrc->host = g_value_dup_string (value);
break;
case PROP_PORT:
tcpclientsrc->port = g_value_get_int (value);
break;
}
g_free (sink->host);
- sink->host = g_strdup (g_value_get_string (value));
+ sink->host = g_value_dup_string (value);
break;
case PROP_PORT:
sink->server_port = g_value_get_int (value);
break;
}
g_free (tcpserversrc->host);
- tcpserversrc->host = g_strdup (g_value_get_string (value));
+ tcpserversrc->host = g_value_dup_string (value);
break;
case PROP_PORT:
tcpserversrc->server_port = g_value_get_int (value);
break;
case PROP_DISPLAY:
g_free (xvimagesink->config.display_name);
- xvimagesink->config.display_name = g_strdup (g_value_get_string (value));
+ xvimagesink->config.display_name = g_value_dup_string (value);
break;
case PROP_SYNCHRONOUS:
xvimagesink->synchronous = g_value_get_boolean (value);