Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Kdenlive
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
261
Issues
261
List
Boards
Labels
Service Desk
Milestones
Merge Requests
16
Merge Requests
16
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Multimedia
Kdenlive
Commits
b961dbc7
Commit
b961dbc7
authored
Jan 10, 2021
by
Jean-Baptiste Mardelle
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Attempt to fix subtitle encoding issue.
Related to
#666
parent
eefecf92
Pipeline
#47166
passed with stage
in 10 minutes and 36 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
src/bin/model/subtitlemodel.cpp
src/bin/model/subtitlemodel.cpp
+2
-0
No files found.
src/bin/model/subtitlemodel.cpp
View file @
b961dbc7
...
...
@@ -105,6 +105,7 @@ void SubtitleModel::importSubtitle(const QString filePath, int offset, bool exte
qDebug
()
<<
"srt File"
;
//parsing srt file
QTextStream
stream
(
&
srtFile
);
stream
.
setCodec
(
QTextCodec
::
codecForName
(
"UTF-8"
));
QString
line
;
while
(
stream
.
readLineInto
(
&
line
))
{
line
=
line
.
simplified
();
...
...
@@ -158,6 +159,7 @@ void SubtitleModel::importSubtitle(const QString filePath, int offset, bool exte
return
;
}
QTextStream
stream
(
&
assFile
);
stream
.
setCodec
(
QTextCodec
::
codecForName
(
"UTF-8"
));
QString
line
;
qDebug
()
<<
" correct ass file "
<<
filePath
;
scriptInfoSection
.
clear
();
...
...
Eugen Mohr
@emohr
mentioned in issue
#666
·
Jan 10, 2021
mentioned in issue
#666
mentioned in issue #666
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment