[aravis] gv_device: register write instead of a memory write to ARV_GVBS_FIRST_STREAM_CHANNEL_IP_ADDRESS.
- From: Emmanuel Pacaud <emmanuel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [aravis] gv_device: register write instead of a memory write to ARV_GVBS_FIRST_STREAM_CHANNEL_IP_ADDRESS.
- Date: Fri, 7 Jan 2011 15:13:55 +0000 (UTC)
commit 2c6aa6230a09dc38e226a37393786759129cd518
Author: Tom Cobb <tom cobb diamond ac uk>
Date: Fri Jan 7 16:12:29 2011 +0100
gv_device: register write instead of a memory write to ARV_GVBS_FIRST_STREAM_CHANNEL_IP_ADDRESS.
We're using a JAI Pulnix camera that requires a register write to
ARV_GVBS_FIRST_STREAM_CHANNEL_IP_ADDRESS instead of a memory write.
src/arvgvdevice.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/arvgvdevice.c b/src/arvgvdevice.c
index 212868f..76cded8 100644
--- a/src/arvgvdevice.c
+++ b/src/arvgvdevice.c
@@ -474,7 +474,7 @@ arv_gv_device_create_stream (ArvDevice *device, ArvStreamCallback callback, void
stream_port = arv_gv_stream_get_port (ARV_GV_STREAM (stream));
arv_device_write_register (device, ARV_GVBS_FIRST_STREAM_CHANNEL_PACKET_SIZE, 0x000005dc);
- arv_device_write_memory (device, ARV_GVBS_FIRST_STREAM_CHANNEL_IP_ADDRESS, 4, (guint8 *) address_bytes);
+ arv_device_write_register (device, ARV_GVBS_FIRST_STREAM_CHANNEL_IP_ADDRESS, g_htonl(*((guint32 *) address_bytes)));
arv_device_write_register (device, ARV_GVBS_FIRST_STREAM_CHANNEL_PORT, stream_port);
arv_device_read_register (device, ARV_GVBS_FIRST_STREAM_CHANNEL_PORT, &stream_port);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]