From 9329797ad6537bb40411f3f50b34944a86b0ea75 Mon Sep 17 00:00:00 2001 From: Erica Z Date: Tue, 15 Oct 2024 11:11:14 +0200 Subject: [PATCH] playbin: use gconfaudiosink --- src/playbin.vala | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/playbin.vala b/src/playbin.vala index 1435b0f..89b6df5 100644 --- a/src/playbin.vala +++ b/src/playbin.vala @@ -44,6 +44,12 @@ class Playbin : Object { } construct { + // gstreamer docs: GNOME-based applications, for example, will usually + // want to create gconfaudiosink and gconfvideosink elements and make + // playbin3 use those, so that output happens to whatever the user has + // configured in the GNOME Multimedia System Selector configuration dialog. + this.playbin.audio_sink = Gst.ElementFactory.make ("gconfaudiosink", null); + this.playbin.source_setup.connect (this.source_setup); this.playbin.about_to_finish.connect (this.about_to_finish);