debian/0000755000000000000000000000000011702331277007171 5ustar debian/dirs0000644000000000000000000000001011700712426010041 0ustar usr/bin debian/rules0000755000000000000000000000003511702330335010241 0ustar #!/usr/bin/make -f %: dh $@ debian/source/0000755000000000000000000000000011702327501010464 5ustar debian/source/format0000644000000000000000000000001411702327501011672 0ustar 3.0 (quilt) debian/compat0000644000000000000000000000000211702330357010365 0ustar 7 debian/gmotionlive.10000644000000000000000000000233511700712426011607 0ustar .\" Copyrights 2007 by Maximiliano Curia .\" This is free documentation, under GNU General Public License (GPL). .\" There is NO warranty. .TH GMOTIONLIVE 1 "June 18, 2007" "gmotionlive" .SH NAME gmotionlive \- simple multipart/x-mixed-replace viewer .SH SYNOPSIS .B gmotionlive \fIurl\fR [\fIdescription\fR] .SH OPTIONS .TP .B url URL for the multipart stream, for example: 'http://me!secret@127.0.0.1:8000/stream.cgi' .TP .B description Alternative text to be displayed instead of the URL (e.g. to have a window title saying 'front door') .SH DESCRIPTION This manual page briefly documents .B gmotionlive. This manual page was written for the Debian GNU/Linux distribution because the original program does not have a manual page. .PP .B gmotionlive is a multipart/x-mixed-replace viewer. It uses gnomevfs to open a stream and it displays the downloaded parts. .PP It was written as a viewer for the motion program (http://motion.sourceforge.net) but should be usable for other sources such as network cameras. .SH AUTHOR .B gmotionlive was written by Jeroen Vreeken . .PP This manual page was originally written by Maximiliano Curia for the Debian GNU/Linux system. debian/copyright0000644000000000000000000000123311700712426011120 0ustar This package was debianized by Maximiliano Curia on Mon, 18 Jun 2007 16:54:24 -0300. It was downloaded from http://gate.vitsch.net/~pe1rxq/gmotionlive Upstream Author: Jeroen Vreeken Copyright Jeroen Vreeken (pe1rxq@amsat.org) 2004, 2005 License: /* * This program is published under the terms of the GNU General * Public License version 2.0 or any later version. */ On Debian Linux systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL'. The Debian packaging is (C) 2007, Maximiliano Curia and is licensed under the GPL, see above. debian/gmotionlive.install0000644000000000000000000000002411700712426013106 0ustar gmotionlive usr/bin debian/changelog0000644000000000000000000000162411700713220011034 0ustar gmotionlive (1.0-3) unstable; urgency=low * Added binary dependency in libgnomevfs2-extra (Closes: Ubuntu#573011) * Debian source format 3.0 quilt migration * Updated Standards-Version to 3.9.2, no changes needed. -- Maximiliano Curia Tue, 03 Jan 2012 20:57:07 -0300 gmotionlive (1.0-2) unstable; urgency=low * Added dpatch dependency. * Replaced Homepage pseudo-field with the proper one. * Added patch to fix some minor gcc sign warnings with debian/patches/001-unsign_sign_chars.dpatch * Added patch to fix a memory leakage with debian/patches/002-g_object_unref.dpatch * Updated Standards-Version to 3.8.0, no changes needed. -- Maximiliano Curia Tue, 15 Jul 2008 16:01:10 -0300 gmotionlive (1.0-1) unstable; urgency=low * Initial release (Closes: #429654) -- Maximiliano Curia Mon, 18 Jun 2007 16:54:24 -0300 debian/docs0000644000000000000000000000000711700712426010036 0ustar README debian/watch0000644000000000000000000000017411702330352010215 0ustar # Compulsory line, this is a version 3 file version=3 http://gate.vitsch.net/~pe1rxq/gmotionlive/ gmotionlive-(.*)\.tar\.gz debian/control0000644000000000000000000000122411702331171010564 0ustar Source: gmotionlive Section: graphics Priority: extra Maintainer: Maximiliano Curia Build-Depends: debhelper (>= 7.0.50~), quilt, libgtk2.0-dev, libgnomevfs2-dev, pkg-config Homepage: http://gate.vitsch.net/~pe1rxq/gmotionlive/ Standards-Version: 3.9.2 Package: gmotionlive Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, libgnomevfs2-extra Description: Simple multipart/x-mixed-replace viewer gmotionlive is a simple gtk viewer for streaming webcams that use multipart/x-mixed-replace streams. . It was written for viewing streams from the motion program but should be usable for other sources such as network cameras. debian/manpages0000644000000000000000000000002511700712426010701 0ustar debian/gmotionlive.1 debian/patches/0000755000000000000000000000000011702330740010612 5ustar debian/patches/unsign_sign_chars0000644000000000000000000000276011702330662014250 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 001-unsign_sign_chars.dpatch by Maximiliano Curia ## ## DP: Fixes useless gcc signed/unsigned char warnings @DPATCH@ diff -urNad gmotionlive-1.0~/gmotionlive.c gmotionlive-1.0/gmotionlive.c --- gmotionlive-1.0~/gmotionlive.c 2005-04-12 05:52:11.000000000 -0300 +++ gmotionlive-1.0/gmotionlive.c 2008-07-15 15:46:52.000000000 -0300 @@ -34,10 +34,10 @@ int netcam_data = 0; int netcam_boundarylen; int netcam_offset; -unsigned char databuf[8192]; -unsigned char boundary[4096]; -unsigned char *boundarystart; -unsigned char *buf = databuf + 4096; +char databuf[8192]; +char boundary[4096]; +char *boundarystart; +char *buf = databuf + 4096; int netcam_count = 0; int netcam_time = 0; int netcam_timecount = 0; @@ -96,7 +96,7 @@ size_t netcam_write(void *ptr, size_t size, size_t nmemb, void *stream) { int i, j; - unsigned char *data = ptr; + char *data = ptr; /* Write the entire stream to stdout for debugging (or recording): */ /*write(2, data, size * nmemb);*/ @@ -150,7 +150,7 @@ } } if (netcam_state == NETCAM_STATE_DATA) { - unsigned char *start; + char *start; int checklen; int boundoff = 0; int back = i + 1; @@ -185,7 +185,7 @@ } } if (j) { - if (FALSE == gdk_pixbuf_loader_write(pixbufloader, start, j, NULL)) { + if (FALSE == gdk_pixbuf_loader_write(pixbufloader, (unsigned char*) start, j, NULL)) { netcam_linesize = 1; i = back; netcam_state = NETCAM_STATE_START; debian/patches/series0000644000000000000000000000004111702330705012023 0ustar g_object_unref unsign_sign_chars debian/patches/g_object_unref0000644000000000000000000000236011702330705013512 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 002-g_object_unref.dpatch by Maximiliano Curia ## ## DP: Fixes a major memory leakage @DPATCH@ diff -urNad gmotionlive-1.0~/gmotionlive.c gmotionlive-1.0/gmotionlive.c --- gmotionlive-1.0~/gmotionlive.c 2005-04-12 05:52:11.000000000 -0300 +++ gmotionlive-1.0/gmotionlive.c 2008-07-15 15:55:31.000000000 -0300 @@ -86,7 +86,6 @@ if (!newpixbuf) return; gtk_image_set_from_pixbuf(GTK_IMAGE(gtkimage), newpixbuf); - g_object_unref(newpixbuf); gtk_widget_show(gtkimage); gtk_window_resize(GTK_WINDOW(window), 100, 100); gtk_widget_show_all(window); @@ -131,6 +130,8 @@ i++; netcam_linesize = 0; netcam_state = NETCAM_STATE_DATA; + if ( pixbufloader ) + g_object_unref(pixbufloader); pixbufloader = gdk_pixbuf_loader_new(); if (!pixbufloader) { g_print("ohoh6\n"); @@ -194,9 +195,11 @@ i += j; } if (netcam_state == NETCAM_STATE_START) { - netcam_linesize = 1; - netcam_line[0] = 0; + netcam_linesize = 1; + netcam_line[0] = 0; + if ( G_IS_OBJECT(pixbufloader) ) { gdk_pixbuf_loader_close(pixbufloader, NULL); + } } memcpy(boundarystart + boundoff, start + checklen, netcam_boundarylen); }