diff options
author | dec05eba <dec05eba@protonmail.com> | 2019-08-04 19:15:17 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2019-08-04 19:15:20 +0200 |
commit | 887b6003010a0c455667fb67c12a5577c60498db (patch) | |
tree | b79f6b7756170a5957b618dff03e86999a5a6b34 /src | |
parent | a2951212724953ca61020759415befdca72599ff (diff) |
Remove unused mvp options
Diffstat (limited to 'src')
-rw-r--r-- | src/QuickMedia.cpp | 6 | ||||
-rw-r--r-- | src/VideoPlayer.cpp | 4 |
2 files changed, 3 insertions, 7 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp index c0ae44f..70f520a 100644 --- a/src/QuickMedia.cpp +++ b/src/QuickMedia.cpp @@ -184,7 +184,6 @@ namespace QuickMedia { //current_plugin = new Manganelo(); current_plugin = new Youtube(); search_bar = std::make_unique<SearchBar>(font); - page_view_stack.push(current_page); } Program::~Program() { @@ -244,10 +243,8 @@ namespace QuickMedia { }; search_bar->onTextSubmitCallback = [this](const std::string &text) { - if(search_selected_suggestion(body, current_plugin) == SearchResult::OK) { + if(search_selected_suggestion(body, current_plugin) == SearchResult::OK) current_page = Page::SEARCH_RESULT; - page_view_stack.push(current_page); - } }; sf::Vector2f body_pos; @@ -317,7 +314,6 @@ namespace QuickMedia { return; video_url = selected_item->url; current_page = Page::VIDEO_CONTENT; - page_view_stack.push(current_page); }; sf::Vector2f body_pos; diff --git a/src/VideoPlayer.cpp b/src/VideoPlayer.cpp index 210a2ca..e3dab43 100644 --- a/src/VideoPlayer.cpp +++ b/src/VideoPlayer.cpp @@ -33,8 +33,8 @@ namespace QuickMedia { if(!mpv) throw VideoInitializationException("Failed to create mpv handle"); - mpv_set_option_string(mpv, "input-default-bindings", "yes"); - mpv_set_option_string(mpv, "input-vo-keyboard", "yes"); + //mpv_set_option_string(mpv, "input-default-bindings", "yes"); + //mpv_set_option_string(mpv, "input-vo-keyboard", "yes"); mpv_set_option_string(mpv, "cache-secs", "120"); mpv_set_option_string(mpv, "demuxer-max-bytes", "20M"); mpv_set_option_string(mpv, "demuxer-max-back-bytes", "10M"); |