Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
luyikei
VLMC
Commits
c3d13814
Commit
c3d13814
authored
Feb 24, 2014
by
Hugo Beauzée-Luyssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WorkflowFileRenderer: Fix missing initialization
parent
ac25b4f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
src/Renderer/WorkflowRenderer.cpp
src/Renderer/WorkflowRenderer.cpp
+3
-0
No files found.
src/Renderer/WorkflowRenderer.cpp
View file @
c3d13814
...
...
@@ -90,6 +90,7 @@ WorkflowRenderer::setupRenderer( quint32 width, quint32 height, double fps )
m_source
->
setAspectRatio
(
qPrintable
(
aspectRatio
()
)
);
m_source
->
setNumberChannels
(
m_nbChannels
);
m_source
->
setSampleRate
(
m_rate
);
m_esHandler
->
fps
=
fps
;
delete
m_sourceRenderer
;
...
...
@@ -158,6 +159,7 @@ WorkflowRenderer::lockVideo( void* data, int64_t *pts, size_t *bufferSize, const
else
*
buffer
=
ret
->
buffer
();
*
bufferSize
=
ret
->
size
();
vlmcDebug
()
<<
__func__
<<
"Rendered frame. pts:"
<<
m_pts
;
return
0
;
}
...
...
@@ -195,6 +197,7 @@ WorkflowRenderer::lockAudio( EsHandler *handler, int64_t *pts, size_t *bufferSiz
ptsDiff
=
m_pts
-
m_audioPts
;
}
m_audioPts
=
*
pts
=
m_audioPts
+
ptsDiff
;
vlmcDebug
()
<<
__func__
<<
"Rendered audio sample. pts:"
<<
m_audioPts
;
return
0
;
}
...
...
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