rem: bacon_video_widget_play (bvw, 0, (int) (65535 / 3), NULL);
add: if (bacon_video_widget_play (bvw, 0, (int) (65535 / 3), NULL) == FALSE) { bacon_video_widget_play (bvw, 0, 0, NULL); }
context: int main (int argc, char *argv[]){	GError *err = NULL;	BaconVideoWidget *bvw;	GdkPixbuf *pixbuf;	int i, length;	g_thread_init (NULL);	gtk_init (&argc, &argv);	if (argc != 3)		print_usage ();	bvw = BACON_VIDEO_WIDGET (bacon_video_widget_new (-1, -1, TRUE, &err));	if (err != NULL)	{		g_print ("totem-video-thumbnailer couln't create the video "				"widget.\nReason: %s.\n", err->message);		g_error_free (err);		exit (1);	}	//FIXME create a new thread that will watch over these 2 next	//calls so that we know they won't take longer than 30 secs	if (bacon_video_widget_open (bvw, argv[1], &err) == FALSE)	{		g_print ("totem-video-thumbnailer couln't open file '%s'\n"				"Reason: %s.\n",				argv[1], err->message);		g_error_free (err);		exit (1);	}	bacon_video_widget_play (bvw, 0, 0, &err);	if (err != NULL)	{		g_print ("totem-video-thumbnailer couln't play file: '%s'\n"				"Reason: %s.\n",				argv[1], err->message);		g_error_free (err);		exit (1);	}	/* A 3rd into the file */	length = bacon_video_widget_get_stream_length (bvw);	if (length > MIN_LEN_FOR_SEEK)	{		bacon_video_widget_play (bvw, 0, (int) (65535 / 3), NULL);	}	if (bacon_video_widget_can_get_frames (bvw, &err) == FALSE)	{		g_print ("totem-video-thumbnailer: '%s' isn't thumbnailable\n"				"Reason: %s\n",				argv[1], err->message);		bacon_video_widget_close (bvw);		gtk_widget_destroy (GTK_WIDGET (bvw));		g_error_free (err);		exit (1);	}	/* 10 seconds! */	i = 0;	pixbuf = bacon_video_widget_get_current_frame (bvw);	while (pixbuf == NULL && i < 10)	{		usleep (1000000);		pixbuf = bacon_video_widget_get_current_frame (bvw);		i++;	}	/* Cleanup */	bacon_video_widget_close (bvw);	gtk_widget_destroy (GTK_WIDGET (bvw));	if (pixbuf == NULL)	{		g_print ("totem-video-thumbnailer couln't get a picture from "					"'%s'\n", argv[1]);		exit (1);	}	save_pixbuf (pixbuf, argv[2], argv[1]);	gdk_pixbuf_unref (pixbuf);	return 0;}