Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
360214c1
Commit
360214c1
authored
Apr 14, 2020
by
Matej Frančeškin
Committed by
Andrew Voznytsa
Apr 25, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correctly set decoding state to true when we get first frame
parent
17090c37
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
GstVideoReceiver.cc
src/VideoReceiver/GstVideoReceiver.cc
+10
-7
No files found.
src/VideoReceiver/GstVideoReceiver.cc
View file @
360214c1
...
@@ -1119,12 +1119,6 @@ GstVideoReceiver::_addVideoSink(GstPad* pad)
...
@@ -1119,12 +1119,6 @@ GstVideoReceiver::_addVideoSink(GstPad* pad)
});
});
}
}
_decoding
=
true
;
qCDebug
(
VideoReceiverLog
)
<<
"Decoding started"
;
_dispatchSignal
([
this
](){
emit
decodingChanged
(
_decoding
);
});
return
true
;
return
true
;
}
}
...
@@ -1138,6 +1132,13 @@ void
...
@@ -1138,6 +1132,13 @@ void
GstVideoReceiver
::
_noteVideoSinkFrame
(
void
)
GstVideoReceiver
::
_noteVideoSinkFrame
(
void
)
{
{
_lastVideoFrameTime
=
QDateTime
::
currentSecsSinceEpoch
();
_lastVideoFrameTime
=
QDateTime
::
currentSecsSinceEpoch
();
if
(
!
_decoding
)
{
_decoding
=
true
;
qCDebug
(
VideoReceiverLog
)
<<
"Decoding started"
;
_dispatchSignal
([
this
](){
emit
decodingChanged
(
_decoding
);
});
}
}
}
void
void
...
@@ -1674,7 +1675,9 @@ GstVideoReceiver::_keyframeWatch(GstPad* pad, GstPadProbeInfo* info, gpointer us
...
@@ -1674,7 +1675,9 @@ GstVideoReceiver::_keyframeWatch(GstPad* pad, GstPadProbeInfo* info, gpointer us
qCDebug
(
VideoReceiverLog
)
<<
"Got keyframe, stop dropping buffers"
;
qCDebug
(
VideoReceiverLog
)
<<
"Got keyframe, stop dropping buffers"
;
pThis
->
recordingStarted
();
pThis
->
_dispatchSignal
([
pThis
]()
{
pThis
->
recordingStarted
();
});
return
GST_PAD_PROBE_REMOVE
;
return
GST_PAD_PROBE_REMOVE
;
}
}
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