Removed custom logger(switching to WServer's logger) + removed custom config file

This commit is contained in:
epoupon
2015-09-07 18:21:22 +02:00
parent 53c3613cf5
commit 65a8e4ba09
14 changed files with 70 additions and 298 deletions
+4 -3
View File
@@ -49,7 +49,7 @@ VideoWidget::search(const std::string& searchText)
void
VideoWidget::playVideo(boost::filesystem::path p)
{
LMS_LOG(MOD_UI, SEV_DEBUG) << "Want to play video " << p << "'" << std::endl;
LMS_LOG(MOD_UI, SEV_DEBUG) << "Want to play video " << p << "'";
try {
std::size_t audioBitrate = 0;
@@ -82,7 +82,8 @@ VideoWidget::playVideo(boost::filesystem::path p)
parameters.setBitrate(Transcode::Stream::Video, 0/*videoBitrate*/);
VideoMediaPlayerWidget *mediaPlayer = new VideoMediaPlayerWidget(parameters, this);
mediaPlayer->close().connect(std::bind([=] () {
mediaPlayer->close().connect(std::bind([=] ()
{
_videoDbWidget->setHidden(false);
delete mediaPlayer;
}));
@@ -90,7 +91,7 @@ VideoWidget::playVideo(boost::filesystem::path p)
_videoDbWidget->setHidden(true);
}
catch( std::exception& e) {
LMS_LOG(MOD_UI, SEV_ERROR) << "Caught exception while loading '" << p << "': " << e.what() << std::endl;
LMS_LOG(MOD_UI, SEV_ERROR) << "Caught exception while loading '" << p << "': " << e.what();
}
}