[Muine] [PATCH] unlock audio device when paused



I've made a patch against 0.6.3 for player-gst.c that makes it release
the audio device while paused and stopped. This is a long standing issue
with that gstreamer-0.8.2 has re-corrected and with this patch you will
be able to use other audio software without closing muine.

- Brian
--- libmuine/player-gst.c	2004-04-20 12:25:44.000000000 -0700
+++ libmuine/player-gst.c	2004-06-19 17:40:28.000000000 -0700
@@ -350,6 +350,7 @@
 	player->priv->pos = 0;
 
 	gst_element_set_state (GST_ELEMENT (player->priv->play), GST_STATE_READY);
+	gst_element_set_state (GST_ELEMENT (player->priv->sink), GST_STATE_NULL);
 }
 
 void
@@ -358,6 +359,7 @@
 	g_return_if_fail (IS_PLAYER (player));
 
 	gst_element_set_state (GST_ELEMENT (player->priv->play), GST_STATE_PAUSED);
+	gst_element_set_state (GST_ELEMENT (player->priv->sink), GST_STATE_NULL);
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]