- upnpbrowser: fix mode_ts for videos; was switched back to mode_upnp by stopAudio()

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2017-08-12 12:48:17 +02:00
committed by Thilo Graf
parent 944ad7cb63
commit 6659dbb6f3

View File

@@ -1311,10 +1311,10 @@ void CUpnpBrowserGui::showPicture(std::string name)
void CUpnpBrowserGui::playVideo(std::string name, std::string url) void CUpnpBrowserGui::playVideo(std::string name, std::string url)
{ {
CNeutrinoApp::getInstance()->handleMsg(NeutrinoMessages::CHANGEMODE, NeutrinoMessages::mode_ts);
stopAudio(); stopAudio();
CNeutrinoApp::getInstance()->handleMsg(NeutrinoMessages::CHANGEMODE, NeutrinoMessages::mode_ts);
m_frameBuffer->stopFrame(); m_frameBuffer->stopFrame();
CMoviePlayerGui::getInstance().SetFile(name, url); CMoviePlayerGui::getInstance().SetFile(name, url);
CMoviePlayerGui::getInstance().exec(NULL, "upnp"); CMoviePlayerGui::getInstance().exec(NULL, "upnp");