]> granicus.if.org Git - handbrake/commitdiff
MacGui: fix string encoding when converting chapters titles to NSString.
authorDamiano Galassi <damiog@gmail.com>
Thu, 12 Jan 2017 18:56:14 +0000 (19:56 +0100)
committerDamiano Galassi <damiog@gmail.com>
Thu, 12 Jan 2017 18:56:58 +0000 (19:56 +0100)
(cherry picked from commit cd858bced3ec13da9ff25d935b8c5166ad9a60b7)

macosx/HBTitle.m

index a1a1bf92c75b53a6af5a799b15d7fc43272f465f..67e4c4ec466aca9f4177353e37ea2aa19de6dc93 100644 (file)
@@ -249,7 +249,7 @@ extern NSString *keySubTrackType;
                 NSString *title;
                 if (chapter->title != NULL)
                 {
-                    title = [NSString stringWithFormat:@"%s", chapter->title];
+                    title = @(chapter->title);
                 }
                 else
                 {