diff options
author | deva <deva> | 2006-06-15 17:35:33 +0000 |
---|---|---|
committer | deva <deva> | 2006-06-15 17:35:33 +0000 |
commit | 897867cc9d3bc869317666993a9cc6ef38c163e2 (patch) | |
tree | 49127ab698c52d0a7a2c7749081f15784cddf4bc /client/networksender.cc | |
parent | d8404ce282917ef81418387f20fc5ee3607be391 (diff) |
Prepared for the client to use uncompressed frames (YUV422 instead of DV).
Still a lot of work to do though!
Diffstat (limited to 'client/networksender.cc')
-rw-r--r-- | client/networksender.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/client/networksender.cc b/client/networksender.cc index 11eb259..f8912f1 100644 --- a/client/networksender.cc +++ b/client/networksender.cc @@ -32,7 +32,7 @@ NetworkSender::NetworkSender(QString cpr) { - ip = "192.168.0.10"; + ip = "127.0.0.1"; port = 6666; // Connect @@ -60,11 +60,11 @@ NetworkSender::~NetworkSender() fprintf(stderr, "Disconnect [%p]\n", this); } -void NetworkSender::pushFrame(char* framedata, bool freeze, bool snapshot) +void NetworkSender::pushFrame(Frame* frame, bool freeze, bool snapshot) { printf("F: %d S %d\n", freeze, snapshot); - Frame *frame = new Frame((unsigned char*)framedata); + // Frame *frame = new Frame((unsigned char*)framedata); frame->freeze = freeze; frame->shoot = snapshot; @@ -104,6 +104,8 @@ void NetworkSender::run() sleep_1_frame(); sleep_1_frame(); sleep_1_frame(); + if(frame->vframe) delete frame->vframe; + if(frame->aframe) delete frame->aframe; delete frame; // TODO: Read status from network |