diff options
author | Christian Pointner <equinox@spreadspace.org> | 2015-05-18 03:53:26 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2015-05-18 03:53:26 (GMT) |
commit | 019ec2ec2c9e16ddfc94926d891dc2dc904638c5 (patch) | |
tree | 4c9bc8a942efd882db7d6e86d3b8267ab6a290a5 | |
parent | 8bc4bb5f1273566c704d76ab584276bd5774b9d8 (diff) |
-rw-r--r-- | src/options.c | 6 | ||||
-rw-r--r-- | src/rharchive.c | 6 |
2 files changed, 9 insertions, 3 deletions
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; } |