Add h264 to the extensions list.

This commit is contained in:
Damiano Galassi committed 2019-01-22 10:31:29 +01:00
1 parent 0d37bcd3cb
commit 6c5d30af50
1 file changed
+1 -1
+1 -1
View File
@@ -13,7 +13,7 @@ class DocumentController : NSDocumentController {
override func openDocument(withContentsOf url: URL, display displayDocument: Bool, completionHandler: @escaping (NSDocument?, Bool, Error?) -> Void) {
let ext = url.pathExtension.lowercased()
if ["mkv", "mka", "mks", "mov"].contains(ext) {
if ["mkv", "mka", "mks", "mov", "264", "h264"].contains(ext) {
do {
let doc = try self.openUntitledDocumentAndDisplay(displayDocument)
completionHandler(doc, false, nil)