srd: Pass samplerate to decoder in metadata.

This commit is contained in:
Gareth McMullin 2011-11-28 21:52:35 +13:00
parent f64c14141b
commit 276585ff20
1 changed files with 1 additions and 1 deletions

View File

@ -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);