Skip to content

Commit

Permalink
change to log level LOG_ANY to silence compiler warnings
Browse files Browse the repository at this point in the history
with help from Gary Buhrmaster
add a VB_FLUSH while here
  • Loading branch information
dekarl committed Jun 9, 2013
1 parent 28ee73f commit 74a0576
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions mythtv/programs/mythutil/mpegutils.cpp
Expand Up @@ -157,12 +157,12 @@ static int pid_counter(const MythUtilCommandLineParser &cmdline)
{
offset = 0;
}
LOG(VB_STDIO, logLevel,
LOG(VB_STDIO|VB_FLUSH, LOG_ANY,
QString("\r \r"
"Processed %1 packets")
.arg(total_count));
}
LOG(VB_STDIO|VB_FLUSH, logLevel, "\n");
LOG(VB_STDIO|VB_FLUSH, LOG_ANY, "\n");

delete[] buffer;
delete srcRB;
Expand Down Expand Up @@ -274,18 +274,18 @@ static int pid_filter(const MythUtilCommandLineParser &cmdline)
{
offset = 0;
}
LOG(VB_STDIO|VB_FLUSH, logLevel,
LOG(VB_STDIO|VB_FLUSH, LOG_ANY,
QString("\r \r"
"Processed %1 packets")
.arg(total_count));
}
LOG(VB_STDIO|VB_FLUSH, logLevel, "\n");
LOG(VB_STDIO|VB_FLUSH, LOG_ANY, "\n");

delete[] buffer;
delete srcRB;
delete destRB;

LOG(VB_STDIO|VB_FLUSH, logLevel, QString("Wrote %1 of %2 packets\n")
LOG(VB_STDIO|VB_FLUSH, LOG_ANY, QString("Wrote %1 of %2 packets\n")
.arg(write_count).arg(total_count));

return GENERIC_EXIT_OK;
Expand Down Expand Up @@ -424,7 +424,7 @@ class PrintOutput
}
else
{
LOG(VB_STDIO|VB_FLUSH, logLevel, msg);
LOG(VB_STDIO|VB_FLUSH, LOG_ANY, msg);
}
}

Expand Down Expand Up @@ -807,18 +807,18 @@ static int pid_printer(const MythUtilCommandLineParser &cmdline)
offset = sd->ProcessData((const unsigned char*)buffer, len);

totalBytes += len - offset;
LOG(VB_STDIO|VB_FLUSH, logLevel,
LOG(VB_STDIO|VB_FLUSH, LOG_ANY,
QString("\r \r"
"Processed %1 bytes")
.arg(totalBytes));
}
LOG(VB_STDIO|VB_FLUSH, logLevel, "\n");
LOG(VB_STDIO|VB_FLUSH, LOG_ANY, "\n");

if (ptsl->GetFirstPTS() >= 0)
{
QTime ot = QTime(0,0,0,0).addMSecs(ptsl->GetElapsedPTS()/90);

LOG(VB_STDIO|VB_FLUSH, logLevel,
LOG(VB_STDIO|VB_FLUSH, LOG_ANY,
QString("First PTS %1, Last PTS %2, elapsed %3 %4\n")
.arg(ptsl->GetFirstPTS()).arg(ptsl->GetLastPTS())
.arg(ptsl->GetElapsedPTS())
Expand Down

0 comments on commit 74a0576

Please sign in to comment.