From 276585ff209d02ea058f09820881ed536e48e3bb Mon Sep 17 00:00:00 2001 From: Gareth McMullin Date: Mon, 28 Nov 2011 21:52:35 +1300 Subject: [PATCH] srd: Pass samplerate to decoder in metadata. --- session_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/session_driver.c b/session_driver.c index 27821861..fd5b11fc 100644 --- a/session_driver.c +++ b/session_driver.c @@ -282,7 +282,7 @@ static int hw_start_acquisition(int device_index, gpointer session_device_id) packet->payload = (unsigned char *)header; header->feed_version = 1; gettimeofday(&header->starttime, NULL); - header->samplerate = 0; + header->samplerate = vdevice->samplerate; header->num_logic_probes = vdevice->num_probes; header->num_analog_probes = 0; sr_session_bus(session_device_id, packet);