[Xfce4-commits] <parole:bluesabre/gtk3> Use autoaudiosink for output, possibly fix bug 10041
Sean Davis
noreply at xfce.org
Sun Aug 11 15:17:42 CEST 2013
Updating branch refs/heads/bluesabre/gtk3
to 9cdd010af514f12b2999f28196fd0f7b051a371d (commit)
from 9a781988a7286f3b80191307861e7d167ae360bf (commit)
commit 9cdd010af514f12b2999f28196fd0f7b051a371d
Author: Sean Davis <smd.seandavis at gmail.com>
Date: Wed May 1 20:34:29 2013 -0400
Use autoaudiosink for output, possibly fix bug 10041
src/gst/parole-gst.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/src/gst/parole-gst.c b/src/gst/parole-gst.c
index a28cb24..bd44a8b 100644
--- a/src/gst/parole-gst.c
+++ b/src/gst/parole-gst.c
@@ -105,6 +105,7 @@ struct ParoleGstPrivate
{
GstElement *playbin;
GstElement *video_sink;
+ GstElement *audio_sink;
GstBus *bus;
@@ -2224,6 +2225,18 @@ parole_gst_constructed (GObject *object)
g_error ("playbin load failed");
}
+ gst->priv->audio_sink = gst_element_factory_make ("autoaudiosink", "audio");
+ if ( G_UNLIKELY (gst->priv->audio_sink == NULL) )
+ {
+ GError *error;
+ error = g_error_new (0, 0, "%s", _("Unable to load audio GStreamer plugin"
+ ", check your GStreamer installation"));
+ xfce_dialog_show_error (GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (gst))),
+ error, NULL);
+ g_error_free (error);
+ g_error ("autoaudiosink load failed");
+ }
+
if (enable_xv)
{
gst->priv->video_sink = gst_element_factory_make ("xvimagesink", "video");
@@ -2250,6 +2263,7 @@ parole_gst_constructed (GObject *object)
g_object_set (G_OBJECT (gst->priv->playbin),
"video-sink", gst->priv->video_sink,
+ "audio-sink", gst->priv->audio_sink,
NULL);
/*
More information about the Xfce4-commits
mailing list