diff options
author | Michal Ratajsky <[email protected]> | 2014-11-20 03:56:17 +0100 |
---|---|---|
committer | Michal Ratajsky <[email protected]> | 2014-11-20 03:56:17 +0100 |
commit | 6edbe3e6c6cd8d817c68d581b67eb12dfdab9937 (patch) | |
tree | f7a1f15aba168627af2210bc80d3f174570c8c0c | |
parent | 2b5cbdee5398665116ed747e3c4f5e914c6ae3fb (diff) | |
download | libmatemixer-6edbe3e6c6cd8d817c68d581b67eb12dfdab9937.tar.bz2 libmatemixer-6edbe3e6c6cd8d817c68d581b67eb12dfdab9937.tar.xz |
pulse: Use GUINT_TO_POINTER universally
-rw-r--r-- | backends/pulse/pulse-sink.c | 8 | ||||
-rw-r--r-- | backends/pulse/pulse-source.c | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/backends/pulse/pulse-sink.c b/backends/pulse/pulse-sink.c index d5b7478..294643c 100644 --- a/backends/pulse/pulse-sink.c +++ b/backends/pulse/pulse-sink.c @@ -190,13 +190,13 @@ pulse_sink_add_input (PulseSink *sink, const pa_sink_input_info *info) PulseSinkInput *input; /* This function is used for both creating and refreshing sink inputs */ - input = g_hash_table_lookup (sink->priv->inputs, GINT_TO_POINTER (info->index)); + input = g_hash_table_lookup (sink->priv->inputs, GUINT_TO_POINTER (info->index)); if (input == NULL) { const gchar *name; input = pulse_sink_input_new (sink, info); g_hash_table_insert (sink->priv->inputs, - GINT_TO_POINTER (info->index), + GUINT_TO_POINTER (info->index), input); free_list_controls (sink); @@ -218,13 +218,13 @@ pulse_sink_remove_input (PulseSink *sink, guint32 index) PulseSinkInput *input; gchar *name; - input = g_hash_table_lookup (sink->priv->inputs, GINT_TO_POINTER (index)); + input = g_hash_table_lookup (sink->priv->inputs, GUINT_TO_POINTER (index)); if G_UNLIKELY (input == NULL) return; name = g_strdup (mate_mixer_stream_control_get_name (MATE_MIXER_STREAM_CONTROL (input))); - g_hash_table_remove (sink->priv->inputs, GINT_TO_POINTER (index)); + g_hash_table_remove (sink->priv->inputs, GUINT_TO_POINTER (index)); free_list_controls (sink); g_signal_emit_by_name (G_OBJECT (sink), diff --git a/backends/pulse/pulse-source.c b/backends/pulse/pulse-source.c index bb2775c..acba188 100644 --- a/backends/pulse/pulse-source.c +++ b/backends/pulse/pulse-source.c @@ -187,13 +187,13 @@ pulse_source_add_output (PulseSource *source, const pa_source_output_info *info) PulseSourceOutput *output; /* This function is used for both creating and refreshing source outputs */ - output = g_hash_table_lookup (source->priv->outputs, GINT_TO_POINTER (info->index)); + output = g_hash_table_lookup (source->priv->outputs, GUINT_TO_POINTER (info->index)); if (output == NULL) { const gchar *name; output = pulse_source_output_new (source, info); g_hash_table_insert (source->priv->outputs, - GINT_TO_POINTER (info->index), + GUINT_TO_POINTER (info->index), output); free_list_controls (source); @@ -215,13 +215,13 @@ pulse_source_remove_output (PulseSource *source, guint32 index) PulseSourceOutput *output; gchar *name; - output = g_hash_table_lookup (source->priv->outputs, GINT_TO_POINTER (index)); + output = g_hash_table_lookup (source->priv->outputs, GUINT_TO_POINTER (index)); if G_UNLIKELY (output == NULL) return; name = g_strdup (mate_mixer_stream_control_get_name (MATE_MIXER_STREAM_CONTROL (output))); - g_hash_table_remove (source->priv->outputs, GINT_TO_POINTER (index)); + g_hash_table_remove (source->priv->outputs, GUINT_TO_POINTER (index)); free_list_controls (source); g_signal_emit_by_name (G_OBJECT (source), |