diff --git a/common/ca_ci.cpp b/common/ca_ci.cpp index c4a2b06..4698637 100644 --- a/common/ca_ci.cpp +++ b/common/ca_ci.cpp @@ -1037,7 +1037,7 @@ void cCA::setInputs() if (fd) { printf("set input%d to tuner %s\n", number, getTunerLetter(number).c_str()); - fprintf(fd, getTunerLetter(number).c_str()); + fprintf(fd,"%s", getTunerLetter(number).c_str()); } else { diff --git a/libarmbox/playback_gst.cpp b/libarmbox/playback_gst.cpp index 6542c2e..cc7ee03 100644 --- a/libarmbox/playback_gst.cpp +++ b/libarmbox/playback_gst.cpp @@ -325,7 +325,7 @@ GstBusSyncReply Gst_bus_call(GstBus *bus, GstMessage *msg, gpointer user_data) case GST_STATE_CHANGE_READY_TO_PAUSED: { GstIterator *children; - GValue r = { 0, }; + GValue r = G_VALUE_INIT; if (audioSink) { @@ -390,6 +390,8 @@ GstBusSyncReply Gst_bus_call(GstBus *bus, GstMessage *msg, gpointer user_data) default: break; } + if(sourceName) + g_free(sourceName); return GST_BUS_DROP; }