diff options
author | Sebastian Reichel <sre@ring0.de> | 2017-09-29 21:42:09 +0200 |
---|---|---|
committer | Sebastian Reichel <sre@ring0.de> | 2017-09-29 21:42:09 +0200 |
commit | a73192b73944eafc8ecb7d9e411c8fed87e00723 (patch) | |
tree | baff258fa6eebe1a3b08f9a7963fbe5ef7f8ff23 /src | |
parent | 632917ed372cb20edcb0168d9e9886ec5f7a0168 (diff) | |
download | serial-barcode-scanner-a73192b73944eafc8ecb7d9e411c8fed87e00723.tar.bz2 |
audio: switch from gstreamer-0.10 to gstreamer-1.0
Diffstat (limited to 'src')
-rw-r--r-- | src/audio/Makefile | 2 | ||||
-rw-r--r-- | src/audio/audio.vala | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/audio/Makefile b/src/audio/Makefile index 1898752..950287a 100644 --- a/src/audio/Makefile +++ b/src/audio/Makefile @@ -2,7 +2,7 @@ all: audio @echo > /dev/null audio: main.vala audio.vala audio-interface.vala ../config/config-interface.vala - valac -X -w -o $@ --pkg gstreamer-0.10 --pkg gio-2.0 $^ + valac -X -w -o $@ --pkg gstreamer-1.0 --pkg gio-2.0 $^ clean: rm -rf audio diff --git a/src/audio/audio.vala b/src/audio/audio.vala index 1404969..76e01b3 100644 --- a/src/audio/audio.vala +++ b/src/audio/audio.vala @@ -36,7 +36,7 @@ public class AudioPlayerImplementation { var alsa = Gst.ElementFactory.make("alsasink", "alsa"); p = Gst.ElementFactory.make("playbin2", "play"); p.set("audio-sink", alsa); - p.get_bus().add_watch(bus_callback); + p.get_bus().add_watch(Priority.DEFAULT, bus_callback); } public void play_system(string file) { |