srd: Pass samplerate to decoder in metadata.
This commit is contained in:
parent
f64c14141b
commit
276585ff20
|
@ -282,7 +282,7 @@ static int hw_start_acquisition(int device_index, gpointer session_device_id)
|
||||||
packet->payload = (unsigned char *)header;
|
packet->payload = (unsigned char *)header;
|
||||||
header->feed_version = 1;
|
header->feed_version = 1;
|
||||||
gettimeofday(&header->starttime, NULL);
|
gettimeofday(&header->starttime, NULL);
|
||||||
header->samplerate = 0;
|
header->samplerate = vdevice->samplerate;
|
||||||
header->num_logic_probes = vdevice->num_probes;
|
header->num_logic_probes = vdevice->num_probes;
|
||||||
header->num_analog_probes = 0;
|
header->num_analog_probes = 0;
|
||||||
sr_session_bus(session_device_id, packet);
|
sr_session_bus(session_device_id, packet);
|
||||||
|
|
Loading…
Reference in New Issue