[rygel] renderer-gst: Use cubic volume
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] renderer-gst: Use cubic volume
- Date: Sat, 31 May 2014 09:25:20 +0000 (UTC)
commit 50a54ae2473c60813af29293ef272cd0a875fe8e
Author: Jens Georg <jensg openismus com>
Date: Fri Mar 8 19:50:32 2013 +0100
renderer-gst: Use cubic volume
https://bugzilla.gnome.org/show_bug.cgi?id=689632
configure.ac | 7 +++++--
.../rygel-playbin-player.vala | 6 ++++--
2 files changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index da96b0d..d5ef5a6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -52,6 +52,9 @@ GSTREAMER_TAG_REQUIRED=1.0
GSTREAMER_APP_REQUIRED=1.0
LIBSQLITE3_REQUIRED=3.5
+dnl Additional requirements for playbin plugin
+GSTREAMER_AUDIO_REQUIRED=1.0
+
dnl Additional requirements for tracker plugin
TRACKER_SPARQL_REQUIRED_MIN=0.14.0
@@ -111,8 +114,8 @@ AS_IF([test "x$with_media_engine" = "xgstreamer"],
RYGEL_MEDIA_ENGINE_GSTREAMER_DEPS_VALAFLAGS="$RYGEL_COMMON_MODULES_VALAFLAGS --pkg
gstreamer-base-1.0 --pkg gstreamer-pbutils-1.0 --pkg gupnp-dlna-2.0"
AC_SUBST([RYGEL_MEDIA_ENGINE_GSTREAMER_DEPS_VALAFLAGS])
- PKG_CHECK_MODULES([LIBRYGEL_RENDERER_GST_DEPS], [$RYGEL_COMMON_MODULES gstreamer-1.0 >=
$GSTREAMER_REQUIRED gio-2.0 >= $GIO_REQUIRED])
- LIBRYGEL_RENDERER_GST_DEPS_VALAFLAGS="$RYGEL_COMMON_MODULES_VALAFLAGS --pkg gstreamer-1.0"
+ PKG_CHECK_MODULES([LIBRYGEL_RENDERER_GST_DEPS], [$RYGEL_COMMON_MODULES gstreamer-1.0 >=
$GSTREAMER_REQUIRED gstreamer-audio-1.0 >= $GSTREAMER_AUDIO_REQUIRED gio-2.0 >= $GIO_REQUIRED])
+ LIBRYGEL_RENDERER_GST_DEPS_VALAFLAGS="$RYGEL_COMMON_MODULES_VALAFLAGS --pkg gstreamer-1.0 --pkg
gstreamer-audio-1.0"
AC_SUBST([LIBRYGEL_RENDERER_GST_DEPS_VALAFLAGS])
],
[enable_gstreamer="no"])
diff --git a/src/librygel-renderer-gst/rygel-playbin-player.vala
b/src/librygel-renderer-gst/rygel-playbin-player.vala
index b71c5cc..57639c5 100644
--- a/src/librygel-renderer-gst/rygel-playbin-player.vala
+++ b/src/librygel-renderer-gst/rygel-playbin-player.vala
@@ -284,11 +284,13 @@ public class Rygel.Playbin.Player : GLib.Object, Rygel.MediaPlayer {
public double volume {
get {
- return this.playbin.volume;
+ return (this.playbin as Audio.StreamVolume).get_volume
+ (Audio.StreamVolumeFormat.CUBIC);
}
set {
- this.playbin.volume = value;
+ (this.playbin as Audio.StreamVolume).set_volume
+ (Audio.StreamVolumeFormat.CUBIC, value);
debug ("volume set to %f.", value);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]