Ticket #608: 0001-protocol-native-use-the-right-samplerate.patch

File 0001-protocol-native-use-the-right-samplerate.patch, 1.2 KB (added by wtay, 3 years ago)

possible patch

  • src/pulsecore/protocol-native.c

    From e149f640598edaf1fdf6ba838ac469bd85dc78ce Mon Sep 17 00:00:00 2001
    From: Wim Taymans <wim.taymans@collabora.co.uk>
    Date: Thu, 23 Jul 2009 13:40:23 +0200
    Subject: [PATCH] protocol-native: use the right samplerate
    
    The render_memblockq is expressed in the sample_spec of the sink, not of the
    particular stream before resampling.
    ---
     src/pulsecore/protocol-native.c |    2 +-
     1 files changed, 1 insertions(+), 1 deletions(-)
    
    diff --git a/src/pulsecore/protocol-native.c b/src/pulsecore/protocol-native.c
    index 96184bd..9a37c56 100644
    a b  
    25502550    reply = reply_new(tag); 
    25512551    pa_tagstruct_put_usec(reply, 
    25522552                          s->current_sink_latency + 
    2553                           pa_bytes_to_usec(s->render_memblockq_length, &s->sink_input->sample_spec)); 
     2553                          pa_bytes_to_usec(s->render_memblockq_length, &s->sink_input->sink->sample_spec)); 
    25542554    pa_tagstruct_put_usec(reply, 0); 
    25552555    pa_tagstruct_put_boolean(reply, 
    25562556                             s->playing_for > 0 &&