summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/options.c6
-rw-r--r--src/rharchive.c6
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;
}