summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZaheer Abbas Merali <zaheerm@gentoo.org>2005-03-16 15:36:09 +0000
committerZaheer Abbas Merali <zaheerm@gentoo.org>2005-03-16 15:36:09 +0000
commita98a38eef643c72f4b639768cd31b3c09b245b0b (patch)
treec1dcc016ab32a2d9cd26c4195607a8401634341d /media-sound/muine/files
parentVersion bump. (diff)
downloadgentoo-2-a98a38eef643c72f4b639768cd31b3c09b245b0b.tar.gz
gentoo-2-a98a38eef643c72f4b639768cd31b3c09b245b0b.tar.bz2
gentoo-2-a98a38eef643c72f4b639768cd31b3c09b245b0b.zip
Fix muine's wrong use of libgstplay
(Portage version: 2.0.51.19)
Diffstat (limited to 'media-sound/muine/files')
-rw-r--r--media-sound/muine/files/digest-muine-0.6.3-r31
-rw-r--r--media-sound/muine/files/muine-0.6.3-libgstplay.diff48
2 files changed, 49 insertions, 0 deletions
diff --git a/media-sound/muine/files/digest-muine-0.6.3-r3 b/media-sound/muine/files/digest-muine-0.6.3-r3
new file mode 100644
index 000000000000..9de74a90ae39
--- /dev/null
+++ b/media-sound/muine/files/digest-muine-0.6.3-r3
@@ -0,0 +1 @@
+MD5 dc7923e1e0ba87f0303bc30f14f604e3 muine-0.6.3.tar.gz 624566
diff --git a/media-sound/muine/files/muine-0.6.3-libgstplay.diff b/media-sound/muine/files/muine-0.6.3-libgstplay.diff
new file mode 100644
index 000000000000..3fe82b0e07ca
--- /dev/null
+++ b/media-sound/muine/files/muine-0.6.3-libgstplay.diff
@@ -0,0 +1,48 @@
+--- player-gst.c 2004-04-20 20:25:44.000000000 +0100
++++ /home/zaheer/player-gst.c 2005-03-15 14:14:10.312438632 +0000
+@@ -144,6 +144,7 @@
+ player_construct (Player *player, char **error)
+ {
+ PlayerPriv *priv;
++ GstElement* tempsink;
+
+ gst_init (NULL, NULL);
+
+@@ -168,22 +169,33 @@
+
+ gst_play_set_data_src (priv->play, priv->source);
+
+- priv->sink = gst_gconf_get_default_audio_sink ();
+- if (!priv->sink) {
++ tempsink = gst_gconf_get_default_audio_sink ();
++ if (!tempsink) {
+ *error = g_strdup (_("Could not render default GStreamer audio output sink"));
+
+ return;
+ }
+
+- gst_play_set_audio_sink (priv->play, priv->sink);
++
++
++ /* gst_play_set_audio_sink (priv->play, priv->sink); */
+
+- priv->volume = gst_bin_get_by_name (GST_BIN (priv->play), "volume");
++ priv->volume = gst_element_factory_make ("volume", "muinevol");
+ if (!priv->volume) {
+ *error = g_strdup (_("Could not find the volume element in the GstPlay pipeline"));
+
+ return;
+ }
+
++ priv->sink = gst_bin_new ("muineaudiosink");
++ gst_bin_add_many (GST_BIN(priv->sink), priv->volume, tempsink, NULL);
++ gst_element_link (priv->volume, tempsink);
++ gst_element_add_ghost_pad (priv->sink,
++ gst_element_get_pad (priv->volume, "sink"),
++ "sink");
++ gst_play_set_audio_sink (priv->play, priv->sink);
++
++ //gst_bin_add (GST_BIN(priv->sink), tempsink);
+ g_signal_connect (priv->play,
+ "error",
+ G_CALLBACK (error_cb),