GNOME Bugzilla – Bug 690056
renderer: Add playback speeds support
Last modified: 2012-12-14 22:33:22 UTC
Created attachment 231290 [details] [review] renderer: Add playback speeds support - allow to specify value other than 1.0 for playback speed. - allowed playback speed values to be specified by the renderer player plugins. - add the X_DLNA_PS to the result of GetCurrentTransportAction invoked from a renderer. (not used for image media) I tried to add the multiple playback speed support to the renderer playbin plugin by using GStreamer "seek_events", but it wasn't working smoothly enough (big latency), so I gave up.
Review of attachment 231290 [details] [review]: This is missing the implementation for the C example, but as that's broken completely more or less, that's ok. Apart from the style comments, looks fine. Thanks. ::: src/librygel-renderer/rygel-av-transport.vala @@ +512,2 @@ action.get ("Speed", typeof (string), out speed); + if ((speed in this.player.allowed_playback_speeds) == false) { if (!(speed in this.player.allowed_playback_speeds)) { ::: src/librygel-renderer/rygel-player-controller.vala @@ +97,3 @@ + foreach (var speed in this.player.allowed_playback_speeds) { + if (speed != "1") { + if (play_speeds == "") missing { and } ::: src/plugins/mpris/rygel-mpris-player.vala @@ +212,3 @@ + { + foreach (var r in _allowed_playback_speeds) { + assert (rational[1] != "0"); missing { }
Created attachment 231453 [details] [review] v2 - reworked based on v1 review comments Fixed coding style