[Gridflow-cvs] [svn] commit: r3308 - in /trunk/format: jpeg.c main.c mpeg3.c png.c quicktimehw.c

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Thu Mar 27 13:29:06 EDT 2008


Author: matju
Date: Thu Mar 27 13:29:06 2008
New Revision: 3308

Log:
don't try to use nonexistent outlet

Modified:
    trunk/format/jpeg.c
    trunk/format/main.c
    trunk/format/mpeg3.c
    trunk/format/png.c
    trunk/format/quicktimehw.c

Modified: trunk/format/jpeg.c
==============================================================================
--- trunk/format/jpeg.c (original)
+++ trunk/format/jpeg.c Thu Mar 27 13:29:06 2008
@@ -86,7 +86,7 @@
 \def 0 bang () {
 	//off_t off = ftell(f);
 	//fseek(f,off,SEEK_SET);
-	if (gfeof(f)) {outlet_bang(bself->out[1]); return;}
+	if (gfeof(f)) {outlet_bang(bself->te_outlet); return;}
 	djpeg.err = jpeg_std_error(&jerr);
 	jpeg_create_decompress(&djpeg);
 	jpeg_stdio_src(&djpeg,f);

Modified: trunk/format/main.c
==============================================================================
--- trunk/format/main.c (original)
+++ trunk/format/main.c Thu Mar 27 13:29:06 2008
@@ -181,7 +181,7 @@
 }
 \def 0 bang () {
 	P<Dim> dim;
-	if (feof(f)) {outlet_bang(bself->out[1]); return;}
+	if (feof(f)) {outlet_bang(bself->te_outlet); return;}
 	if (headerless) {
 		dim = headerless;
 	} else {

Modified: trunk/format/mpeg3.c
==============================================================================
--- trunk/format/mpeg3.c (original)
+++ trunk/format/mpeg3.c Thu Mar 27 13:29:06 2008
@@ -43,7 +43,7 @@
 	int nframe = mpeg3_get_frame(mpeg,track);
 	int nframes = mpeg3_video_frames(mpeg,track);
 	post("track=%d; nframe=%d; nframes=%d",track,nframe,nframes);
-	if (nframe >= nframes) {outlet_bang(bself->out[1]); return;}
+	if (nframe >= nframes) {outlet_bang(bself->te_outlet); return;}
 	int sx = mpeg3_video_width(mpeg,track);
 	int sy = mpeg3_video_height(mpeg,track);
 	int channels = 3;

Modified: trunk/format/png.c
==============================================================================
--- trunk/format/png.c (original)
+++ trunk/format/png.c Thu Mar 27 13:29:06 2008
@@ -59,7 +59,7 @@
 
 \def 0 bang () {
 	uint8 sig[8];
-	if (!fread(sig, 1, 8, f)) {outlet_bang(bself->out[1]); return;}
+	if (!fread(sig, 1, 8, f)) {outlet_bang(bself->te_outlet); return;}
 	if (!png_check_sig(sig, 8)) RAISE("bad signature");
 	png = png_create_read_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL);
 	if (!png) RAISE("!png");

Modified: trunk/format/quicktimehw.c
==============================================================================
--- trunk/format/quicktimehw.c (original)
+++ trunk/format/quicktimehw.c Thu Mar 27 13:29:06 2008
@@ -61,7 +61,7 @@
 
 \def 0 bang () {
 	int nframe = quicktime_video_position(anim,track);
-	if (nframe >= length) {outlet_bang(bself->out[1]); return;}
+	if (nframe >= length) {outlet_bang(bself->te_outlet); return;}
 	/* if it works, only do it once, to avoid silly stderr messages forgotten in LQT */
 	if (!quicktime_reads_cmodel(anim,colorspace,0) && !started) {
 		RAISE("LQT says this video cannot be decoded into the chosen colorspace");
@@ -176,7 +176,7 @@
 \def 0 get () {
 /*	t_atom a[1];
 	SETFLOAT(a,(float)length);
-	outlet_anything(bself->out[1],gensym("frames"),1,a);
+	outlet_anything(bself->te_outlet,gensym("frames"),1,a);
 */
 	Ruby a[] = {INT2NUM(1),SYM(frames),INT2NUM(length)};
 	send_out(3,a);



More information about the Gridflow-cvs mailing list