mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 09:21:09 +02:00
movieplayer: makeScreenShot fallback for too long name
Origin commit data
------------------
Branch: ni/coolstream
Commit: a10448091a
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2020-02-06 (Thu, 06 Feb 2020)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -3315,6 +3315,13 @@ void CMoviePlayerGui::makeScreenShot(bool autoshot, bool forcover)
|
||||
autoshot_done = true;
|
||||
return;
|
||||
}
|
||||
std::string::size_type lastpos = fname.find_last_of('/');
|
||||
int len = fname.length() + 30 - lastpos + g_settings.screenshot_dir.length() ;
|
||||
if( len > NAME_MAX && !pretty_name.empty() && pretty_name.length() <= NAME_MAX)
|
||||
fname = "/" + pretty_name;
|
||||
else if( len > NAME_MAX && !info_1.empty() && info_1.length() <= NAME_MAX)
|
||||
fname = "/" + info_1;
|
||||
|
||||
cover = false;
|
||||
autoshot = false;
|
||||
forcover = false;
|
||||
|
Reference in New Issue
Block a user