search for: g_getenv

Displaying 8 results from an estimated 8 matches for "g_getenv".

2007 Mar 20
0
9 commits - configure.ac libswfdec/swfdec_bits.c libswfdec/swfdec_debug.c libswfdec/swfdec_js.c libswfdec/swfdec_script.c libswfdec/swfdec_sound.c
...++ b/libswfdec/swfdec_js.c @@ -68,16 +68,6 @@ static JSClass global_class = { JS_EnumerateStub,JS_ResolveStub,JS_ConvertStub,JS_FinalizeStub }; -static JSTrapStatus G_GNUC_UNUSED -swfdec_js_debug_one (JSContext *cx, JSScript *script, jsbytecode *pc, - jsval *rval, void *closure) -{ - if (g_getenv ("SWFDEC_JS") && g_str_equal (g_getenv ("SWFDEC_JS"), "trace")) - js_Disassemble1 (cx, script, pc, pc - script->code, - JS_TRUE, stderr); - return JSTRAP_CONTINUE; -} - /** * swfdec_js_init_player: * @player: a #SwfdecPlayer @@ -93,10 +83,6 @@ swfde...
2007 Oct 14
0
4 commits - libswfdec/swfdec_codec_audio.c libswfdec/swfdec_codec_gst.c libswfdec/swfdec_codec_video.c libswfdec/swfdec_sound.c
...(ret == NULL) - ret = swfdec_audio_decoder_mad_new (codec, format); -#endif -#ifdef HAVE_FFMPEG - if (ret == NULL) - ret = swfdec_audio_decoder_ffmpeg_new (codec, format); -#endif -#ifdef HAVE_GST - if (ret == NULL) - ret = swfdec_audio_decoder_gst_new (codec, format); -#endif + list = g_getenv ("SWFDEC_CODEC_AUDIO"); + if (list == NULL) + list = g_getenv ("SWFDEC_CODEC"); + if (list == NULL) { + guint i; + for (i = 0; audio_codecs[i].name != NULL; i++) { + ret = audio_codecs[i].func (codec, format); + if (ret) + break; + } + } else { + char...
2007 Feb 06
0
Branch 'interpreter' - 15 commits - configure.ac libswfdec/swfdec_audio_event.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h libswfdec/swfdec_compiler.c libswfdec/swfdec_image.c libswfdec/swfdec_sprite_movie.c
..._surface_get_data (image), + cairo_image_surface_get_data (diff), + w, h, 4 * w) != 0) { g_print (" ERROR: images differ\n"); goto dump; } cairo_surface_destroy (image); + cairo_surface_destroy (diff); return TRUE; dump: cairo_surface_destroy (image); if (g_getenv ("SWFDEC_TEST_DUMP")) { cairo_status_t status; - char *dump = g_strdup_printf ("%s.dump.png", filename); + char *dump; + + dump = g_strdup_printf ("%s.dump.png", filename); status = cairo_surface_write_to_png (surface, dump); if (status) {...
2007 Oct 15
0
6 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_codec_audio.c libswfdec/swfdec_codec_video.c libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c
...coder_new diff --git a/libswfdec/swfdec_codec_audio.c b/libswfdec/swfdec_codec_audio.c index bdf33f3..7c4ab8a 100644 --- a/libswfdec/swfdec_codec_audio.c +++ b/libswfdec/swfdec_codec_audio.c @@ -160,6 +160,7 @@ swfdec_audio_decoder_new (SwfdecAudioCodec codec, SwfdecAudioFormat format) list = g_getenv ("SWFDEC_CODEC"); if (list == NULL) { guint i; + ret = NULL; for (i = 0; audio_codecs[i].name != NULL; i++) { ret = audio_codecs[i].func (codec, format); if (ret) diff --git a/libswfdec/swfdec_codec_video.c b/libswfdec/swfdec_codec_video.c index bdcce56..291c...
2008 Jan 08
0
4 commits - test/.gitignore test/image test/Makefile.am test/swfdec_test_function.c test/swfdec_test_image.c test/swfdec_test_image.h test/swfdec_test_initialize.as test/swfdec_test_initialize.h test/swfdec_test_test.c test/trace
..._surface_get_data (image), - cairo_image_surface_get_data (diff), - w, h, 4 * w) != 0) { - g_print (" ERROR: images differ\n"); - goto dump; - } - - cairo_surface_destroy (image); - cairo_surface_destroy (diff); - return TRUE; - -dump: - cairo_surface_destroy (image); - if (g_getenv ("SWFDEC_TEST_DUMP")) { - cairo_status_t status; - char *dump; - - dump = g_strdup_printf ("%s.dump.png", filename); - status = cairo_surface_write_to_png (surface, dump); - if (status) { - g_print (" ERROR: failed to dump image to %s: %s\n", d...
2007 Feb 06
0
21 commits - configure.ac libswfdec/swfdec_audio_event.c libswfdec/swfdec_bits.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h libswfdec/swfdec_compiler.c libswfdec/swfdec_edittext.c libswfdec/swfdec_image.c
..._surface_get_data (image), + cairo_image_surface_get_data (diff), + w, h, 4 * w) != 0) { g_print (" ERROR: images differ\n"); goto dump; } cairo_surface_destroy (image); + cairo_surface_destroy (diff); return TRUE; dump: cairo_surface_destroy (image); if (g_getenv ("SWFDEC_TEST_DUMP")) { cairo_status_t status; - char *dump = g_strdup_printf ("%s.dump.png", filename); + char *dump; + + dump = g_strdup_printf ("%s.dump.png", filename); status = cairo_surface_write_to_png (surface, dump); if (status) {...
2007 Jul 02
0
Branch 'as' - 24 commits - configure.ac doc/Makefile.am doc/swfdec-sections.txt libswfdec/Makefile.am libswfdec/swfdec_amf.c libswfdec/swfdec_as_array.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_frame.c
...- for (walk = tests; walk; walk = walk->next) { - Test *test = walk->data; - - run_test (test); - g_print (test->output); - if (!test->success) { - failures++; - g_string_append_printf (failed_tests, - " %s\n", test->filename); + if (g_getenv ("SWFDEC_TEST_THREADS")) { + pool = g_thread_pool_new (run_test, NULL, -1, FALSE, &error); + if (pool == NULL) { + g_print (" WARNING: Could not start thread pool: %s\n", error->message); + g_print (" WARNING: testing unthreaded\n"); + g_e...
2008 Jan 08
0
9 commits - configure.ac test/custom test/Makefile.am test/swfdec_test_initialize.as test/swfdec_test_initialize.h test/swfdec_test_test.c test/trace
...all tests into the tests list */ - if (argc > 1) { - int i; - for (i = 1; i < argc; i++) { - tests = g_list_append (tests, test_new (g_strdup (argv[i]))); - } - } else { - GDir *dir; - char *name; - const char *path, *file; - /* automake defines this */ - path = g_getenv ("srcdir"); - if (path == NULL) - path = "."; - dir = g_dir_open (path, 0, NULL); - while ((file = g_dir_read_name (dir))) { - if (!g_str_has_suffix (file, ".swf")) - continue; - name = g_build_filename (path, file, NULL); - tests = g_list_...