Fix uninitialized variables
This commit is contained in:
@@ -134,8 +134,8 @@ void MoodbarPipeline::Start() {
|
||||
|
||||
void MoodbarPipeline::ReportError(GstMessage *msg) {
|
||||
|
||||
GError *error;
|
||||
gchar *debugs;
|
||||
GError *error = nullptr;
|
||||
gchar *debugs = nullptr;
|
||||
|
||||
gst_message_parse_error(msg, &error, &debugs);
|
||||
QString message = QString::fromLocal8Bit(error->message);
|
||||
|
||||
@@ -136,7 +136,7 @@ void MoodbarRenderer::Render(const ColorVector &colors, QPainter *p, const QRect
|
||||
|
||||
// Draw the actual moodbar.
|
||||
for (int x = 0; x < rect.width(); x++) {
|
||||
int h, s, v;
|
||||
int h = 0, s = 0, v = 0;
|
||||
screen_colors[x].getHsv(&h, &s, &v);
|
||||
|
||||
for (int y = 0; y <= rect.height() / 2; y++) {
|
||||
|
||||
Reference in New Issue
Block a user