mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 01:11:06 +02:00
gui/movieplayer.cpp: check file name is not url before save screenshot
Origin commit data
------------------
Branch: ni/coolstream
Commit: b852496603
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2014-10-01 (Wed, 01 Oct 2014)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1973,6 +1973,13 @@ void CMoviePlayerGui::makeScreenShot(bool autoshot, bool forcover)
|
||||
if (p_movie_info)
|
||||
fname = p_movie_info->file.Name;
|
||||
|
||||
/* quick check we have file and not url as file name */
|
||||
if (fname.c_str()[0] != '/') {
|
||||
if (autoshot)
|
||||
autoshot_done = true;
|
||||
return;
|
||||
}
|
||||
|
||||
std::string::size_type pos = fname.find_last_of('.');
|
||||
if (pos != std::string::npos) {
|
||||
fname.replace(pos, fname.length(), ending);
|
||||
|
Reference in New Issue
Block a user