[Spice-devel] [spice-server 1/2] gstreamer: Remove unused function

Pavel Grunt pgrunt at redhat.com
Wed Feb 15 08:47:36 UTC 2017


On Wed, 2017-02-15 at 09:39 +0100, Christophe Fergeau wrote:
> rate_control_is_active() is static and not used in gstreamer-
> encoder.c

Yeah, not needed since 97fcad82eb7d1f3bbd8d1163801b5a3db92944c2

Acked-by: Pavel Grunt <pgrunt at redhat.com>

> ---
>  server/gstreamer-encoder.c | 5 -----
>  1 file changed, 5 deletions(-)
> 
> diff --git a/server/gstreamer-encoder.c b/server/gstreamer-encoder.c
> index 5c60a64..dd2926d 100644
> --- a/server/gstreamer-encoder.c
> +++ b/server/gstreamer-encoder.c
> @@ -347,11 +347,6 @@ static uint32_t
> get_network_latency(SpiceGstEncoder *encoder)
>          encoder->cbs.get_roundtrip_ms(encoder->cbs.opaque) / 2 : 0;
>  }
>  
> -static inline int rate_control_is_active(SpiceGstEncoder* encoder)
> -{
> -    return encoder->cbs.get_roundtrip_ms != NULL;
> -}
> -
>  static void set_pipeline_changes(SpiceGstEncoder *encoder, uint32_t
> flags)
>  {
>      encoder->set_pipeline |= flags;


More information about the Spice-devel mailing list