diff --git a/approot/templates.xml b/approot/templates.xml
index 76e1f019..c2e348de 100644
--- a/approot/templates.xml
+++ b/approot/templates.xml
@@ -4,7 +4,7 @@
${navbar-top class="main-nav"}
${contents class="container"}
- ${player}
+ ${player class="Lms-player"}
diff --git a/docroot/css/lms.css b/docroot/css/lms.css
index 47303070..b259d5a1 100644
--- a/docroot/css/lms.css
+++ b/docroot/css/lms.css
@@ -3,3 +3,7 @@
font-weight: bold;
}
+.Lms-player {
+ background-color: grey;
+}
+
diff --git a/src/Makefile.am b/src/Makefile.am
index 66a1efd3..b5c510a8 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -39,7 +39,6 @@ lms_SOURCES = \
$(srcdir)/ui/explore/ReleasesView.cpp \
$(srcdir)/ui/explore/ReleaseView.cpp \
$(srcdir)/ui/explore/TracksView.cpp \
- $(srcdir)/ui/resource/AvConvTranscodeStreamResource.cpp \
$(srcdir)/ui/resource/ImageResource.cpp \
$(srcdir)/ui/resource/TranscodeResource.cpp \
$(srcdir)/utils/Config.cpp \
diff --git a/src/av/AvInfo.cpp b/src/av/AvInfo.cpp
index 90aa10d4..43f2332f 100644
--- a/src/av/AvInfo.cpp
+++ b/src/av/AvInfo.cpp
@@ -201,7 +201,7 @@ MediaFile::getStreams(Stream::Type type) const
return res;
}
-int
+boost::optional
MediaFile::getBestStreamId(Stream::Type type) const
{
if (_context == nullptr)
@@ -215,7 +215,7 @@ MediaFile::getBestStreamId(Stream::Type type) const
case Stream::Type::Video: avMediaType = AVMEDIA_TYPE_VIDEO; break;
case Stream::Type::Subtitle: avMediaType = AVMEDIA_TYPE_SUBTITLE; break;
default:
- return -1;
+ return boost::none;
}
int res = av_find_best_stream(_context,
@@ -227,7 +227,7 @@ MediaFile::getBestStreamId(Stream::Type type) const
if (res < 0)
{
LMS_LOG(AV, ERROR) << "Cannot find best stream for type " << streamType_to_string(type);
- return -1;
+ return boost::none;
}
return res;
diff --git a/src/av/AvInfo.hpp b/src/av/AvInfo.hpp
index 377fd6fd..1bb92e1b 100644
--- a/src/av/AvInfo.hpp
+++ b/src/av/AvInfo.hpp
@@ -35,6 +35,7 @@ extern "C"
#include
#include