From 019ec2ec2c9e16ddfc94926d891dc2dc904638c5 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Mon, 18 May 2015 05:53:26 +0200 Subject: fixed some cleanup errors, version output contians compiler info diff --git a/src/options.c b/src/options.c index 8e42230..b6c593e 100644 --- a/src/options.c +++ b/src/options.c @@ -310,7 +310,13 @@ void options_print_usage() void options_print_version() { printf("%s\n", VERSION_STRING_0); +#if defined(__clang__) + printf("%s, using CLANG %s\n", VERSION_STRING_1, __clang_version__); +#elif defined(__GNUC__) + printf("%s, using GCC %d.%d.%d\n", VERSION_STRING_1, __GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__); +#else printf("%s\n", VERSION_STRING_1); +#endif } void options_print(options_t* opt) diff --git a/src/rharchive.c b/src/rharchive.c index 7014fdd..ea8e3a4 100644 --- a/src/rharchive.c +++ b/src/rharchive.c @@ -117,10 +117,10 @@ int main_loop(options_t* opt) source = gst_parse_bin_from_description(opt->src_bin_desc_, TRUE, &error); if(!source || error) { log_printf(ERROR, "Source Bin Description Parser Error: %s", error ? error->message : "unknown"); - g_error_free(error); + //g_error_free(error); gst_object_unref(GST_OBJECT(writer.sink_)); gst_object_unref(GST_OBJECT(pipeline)); - rhmain_loop_destroy(&loop); + //rhmain_loop_destroy(&loop); return -1; } @@ -146,7 +146,7 @@ int main_loop(options_t* opt) gst_element_set_state (pipeline, GST_STATE_NULL); writer_stop(&writer); gst_object_unref(GST_OBJECT(pipeline)); - //rhmain_loop_destroy(&loop); + //rhmain_loop_destroy(&loop); return ret; } -- cgit v0.10.2