[Muine] [PATCH] unlock audio device when paused
- From: Brian Kerrick Nickel <kerrick cox net>
- To: muine-list gnome org
- Subject: [Muine] [PATCH] unlock audio device when paused
- Date: Sun, 20 Jun 2004 23:21:33 -0700
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]