diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2015-04-29 16:52:46 +0200 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2015-05-07 21:50:43 +0200 |
commit | 63bf00275769928850113b4df205df08d6303b45 (patch) | |
tree | bde42f15961164b9c2fdf051f1a606b79e494bf8 /gtk/spice-pulse.c | |
parent | 4a9e4622b159aea54949b62f4a1dde1416cfa251 (diff) |
audio: use swapped channel handler for stop
We are going to reuse playback_stop() in following commit.
Diffstat (limited to 'gtk/spice-pulse.c')
-rw-r--r-- | gtk/spice-pulse.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gtk/spice-pulse.c b/gtk/spice-pulse.c index 916f1d0..2373c72 100644 --- a/gtk/spice-pulse.c +++ b/gtk/spice-pulse.c @@ -489,9 +489,8 @@ static void playback_data(SpicePlaybackChannel *channel, p->playback.state = state; } -static void playback_stop(SpicePlaybackChannel *channel, gpointer data) +static void playback_stop(SpicePulse *pulse) { - SpicePulse *pulse = data; SpicePulsePrivate *p = pulse->priv; SPICE_DEBUG("%s: #underflow %u", __FUNCTION__, p->playback.num_underflow); @@ -800,7 +799,7 @@ static gboolean connect_channel(SpiceAudio *audio, SpiceChannel *channel) spice_g_signal_connect_object(channel, "playback-data", G_CALLBACK(playback_data), pulse, 0); spice_g_signal_connect_object(channel, "playback-stop", - G_CALLBACK(playback_stop), pulse, 0); + G_CALLBACK(playback_stop), pulse, G_CONNECT_SWAPPED); spice_g_signal_connect_object(channel, "notify::volume", G_CALLBACK(playback_volume_changed), pulse, 0); spice_g_signal_connect_object(channel, "notify::mute", |