last-exit r169 - in trunk: . liblast-exit src
- From: bhale svn gnome org
- To: svn-commits-list gnome org
- Subject: last-exit r169 - in trunk: . liblast-exit src
- Date: Sun, 30 Mar 2008 02:08:37 +0100 (BST)
Author: bhale
Date: Sun Mar 30 02:08:37 2008
New Revision: 169
URL: http://svn.gnome.org/viewvc/last-exit?rev=169&view=rev
Log:
Properly dispose of gstreamer element when shutting down.
Gnome Bug #524124, fix from Jordan Callicoat.
Modified:
trunk/ChangeLog
trunk/liblast-exit/player.c
trunk/src/Driver.cs
trunk/src/Player.cs
Modified: trunk/liblast-exit/player.c
==============================================================================
--- trunk/liblast-exit/player.c (original)
+++ trunk/liblast-exit/player.c Sun Mar 30 02:08:37 2008
@@ -243,3 +243,11 @@
return (int)(vol * 100);
}
+
+void
+player_exit (Player *player)
+{
+ gst_element_set_state (player->priv->play,
+ GST_STATE_NULL);
+}
+
Modified: trunk/src/Driver.cs
==============================================================================
--- trunk/src/Driver.cs (original)
+++ trunk/src/Driver.cs Sun Mar 30 02:08:37 2008
@@ -186,6 +186,7 @@
}
public static void Exit () {
+ player.Exit ();
Environment.Exit (0);
}
Modified: trunk/src/Player.cs
==============================================================================
--- trunk/src/Player.cs (original)
+++ trunk/src/Player.cs Sun Mar 30 02:08:37 2008
@@ -166,6 +166,13 @@
}
}
}
+
+ [DllImport ("liblastexit")]
+ private static extern void player_exit (IntPtr player);
+
+ public void Exit () {
+ player_exit (Raw);
+ }
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]