X-Git-Url: http://git.maemo.org/git/?p=mardrone;a=blobdiff_plain;f=mardrone%2Fdronelib%2Fvideo.cpp;h=0580a6d4ee8ff3880ce30c6e14a5da53d7a34ccf;hp=a4ec15593a10c53f65b95787b1ee49e18023118e;hb=c384cc2bdb47e995114cd65d9f0a79053663214b;hpb=323e8e1692d15a3435f1813f038e757cd2614938 diff --git a/mardrone/dronelib/video.cpp b/mardrone/dronelib/video.cpp index a4ec155..0580a6d 100644 --- a/mardrone/dronelib/video.cpp +++ b/mardrone/dronelib/video.cpp @@ -135,11 +135,11 @@ VideoThread::VideoThread(DroneVideo *parentp,QHostAddress host,QImage *_image) imreq.imr_multiaddr.s_addr=inet_addr("224.1.1.1"); imreq.imr_interface.s_addr=inet_addr(my_ip.toAscii()); setsockopt(videoSock->socketDescriptor(),IPPROTO_IP,IP_ADD_MEMBERSHIP,&imreq,sizeof(imreq)); -//#else +#if QT_VERSION >= 0x040800 // Qt 4.8 if(!videoSock->joinMulticastGroup(QHostAddress("224.1.1.1"))) qDebug() << "VideoThread::VideoThread can't join multicast Group 224.1.1.1" << videoSock->errorString(); -//#endif +#endif droneHost=host; videoRec=FALSE; videoFile=NULL;