mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Add .m4v as a video file format.
This commit is contained in:
@@ -334,7 +334,7 @@ QString ImagesOrAllFilter() {
|
||||
}
|
||||
|
||||
QString PhotoVideoFilesFilter() {
|
||||
return u"Image and Video Files (*.png *.jpg *.jpeg *.mp4 *.mov);;"_q
|
||||
return u"Image and Video Files (*.png *.jpg *.jpeg *.mp4 *.mov *.m4v);;"_q
|
||||
+ AllFilesFilter();
|
||||
}
|
||||
|
||||
|
@@ -682,6 +682,7 @@ bool FileLoadTask::CheckForVideo(
|
||||
static const auto extensions = {
|
||||
u".mp4"_q,
|
||||
u".mov"_q,
|
||||
u".m4v"_q,
|
||||
u".webm"_q,
|
||||
};
|
||||
if (!CheckMimeOrExtensions(filepath, result->filemime, mimes, extensions)) {
|
||||
|
Reference in New Issue
Block a user