mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
a970a32304
Original commit message from CVS: * configure.ac: Pull in librfb from my CVS tree, because it is too small and annoying to be separate. Move rfbsrc plugin to gst/. * ext/Makefile.am: * ext/librfb/Makefile.am: * ext/librfb/gstrfbsrc.c: * gst/librfb/Makefile.am: * gst/librfb/gstrfbsrc.c: * gst/librfb/rfb.c: * gst/librfb/rfb.h: * gst/librfb/rfbbuffer.c: * gst/librfb/rfbbuffer.h: * gst/librfb/rfbbytestream.c: * gst/librfb/rfbbytestream.h: * gst/librfb/rfbcontext.h: * gst/librfb/rfbdecoder.c: * gst/librfb/rfbdecoder.h: * gst/librfb/rfbutil.h:
31 lines
479 B
C
31 lines
479 B
C
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
#include "rfb.h"
|
|
|
|
|
|
int
|
|
main (int argc, char *argv[])
|
|
{
|
|
RfbDecoder *decoder;
|
|
|
|
//int fd = 0;
|
|
|
|
decoder = rfb_decoder_new ();
|
|
|
|
rfb_decoder_connect_tcp (decoder, "127.0.0.1", 5901);
|
|
//rfb_decoder_use_file_descriptor (decoder, fd);
|
|
|
|
while (!decoder->inited)
|
|
rfb_decoder_iterate (decoder);
|
|
|
|
rfb_decoder_send_update_request (decoder, FALSE, 0, 0, 100, 100);
|
|
|
|
while (1) {
|
|
rfb_decoder_iterate (decoder);
|
|
}
|
|
|
|
return 0;
|
|
}
|