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
9d8875ca
Commit
9d8875ca
authored
Jan 04, 2017
by
Jacob Walser
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make _streaming flag non-gstreamer safe
parent
8115753b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
VideoReceiver.cc
src/VideoStreaming/VideoReceiver.cc
+5
-0
VideoReceiver.h
src/VideoStreaming/VideoReceiver.h
+1
-1
No files found.
src/VideoStreaming/VideoReceiver.cc
View file @
9d8875ca
...
...
@@ -180,6 +180,7 @@ VideoReceiver::VideoReceiver(QObject* parent)
:
QObject
(
parent
)
#if defined(QGC_GST_STREAMING)
,
_recording
(
false
)
,
_streaming
(
false
)
,
_videoSink
(
NULL
)
,
_socket
(
NULL
)
,
_serverPresent
(
false
)
...
...
@@ -460,6 +461,7 @@ void VideoReceiver::stop()
gst_object_unref
(
_pipeline
);
_pipeline
=
NULL
;
_serverPresent
=
false
;
_streaming
=
false
;
}
#endif
}
...
...
@@ -494,6 +496,9 @@ void VideoReceiver::_onBusMessage(GstMessage* msg)
}
while
(
0
);
stop
();
break
;
case
GST_MESSAGE_STATE_CHANGED
:
_streaming
=
GST_STATE
(
_pipeline
)
==
GST_STATE_PLAYING
;
break
;
default:
break
;
}
...
...
src/VideoStreaming/VideoReceiver.h
View file @
9d8875ca
...
...
@@ -40,7 +40,7 @@ public:
#endif
bool
recording
()
{
return
_recording
;
}
bool
streaming
()
{
return
GST_STATE
(
_pipeline
)
==
GST_STATE_PLAYING
;
}
bool
streaming
()
{
return
_streaming
;
}
signals:
void
recordingChanged
();
...
...
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