Pass the force hvc1 option to the library instead of sharing a user default.
This commit is contained in:
3 files changed
+9
-1
No files matched your search
@@ -84,6 +84,10 @@ final class Document: NSDocument {
|
|||||||
options[MP42ChaptersPreviewPosition] = Prefs.chaptersPreviewPosition
|
options[MP42ChaptersPreviewPosition] = Prefs.chaptersPreviewPosition
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if Prefs.forceHvc1 {
|
||||||
|
options[MP42ForceHvc1] = true
|
||||||
|
}
|
||||||
|
|
||||||
if let accessoryViewController = accessoryViewController {
|
if let accessoryViewController = accessoryViewController {
|
||||||
options[MP4264BitData] = accessoryViewController._64bit_data.state == .on ? true : false
|
options[MP4264BitData] = accessoryViewController._64bit_data.state == .on ? true : false
|
||||||
options[MP4264BitTime] = accessoryViewController._64bit_time.state == .on ? true : false
|
options[MP4264BitTime] = accessoryViewController._64bit_time.state == .on ? true : false
|
||||||
|
|||||||
@@ -81,6 +81,10 @@ import MP42Foundation
|
|||||||
attributes[MP42GenerateChaptersPreviewTrack] = true
|
attributes[MP42GenerateChaptersPreviewTrack] = true
|
||||||
attributes[MP42ChaptersPreviewPosition] = Prefs.chaptersPreviewPosition
|
attributes[MP42ChaptersPreviewPosition] = Prefs.chaptersPreviewPosition
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if Prefs.forceHvc1 {
|
||||||
|
attributes[MP42ForceHvc1] = true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
convenience init(mp4: MP42File) {
|
convenience init(mp4: MP42File) {
|
||||||
|
|||||||
+1
-1
Submodule MP42Foundation updated: 10b1a716c2...bf0417c97d.
Reference in new issue
Block a user