Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
gajim
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
210
Issues
210
List
Boards
Labels
Service Desk
Milestones
Merge Requests
22
Merge Requests
22
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gajim
gajim
Commits
76501abf
Commit
76501abf
authored
Feb 09, 2021
by
Daniel Brötzmann
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Preferences: Check for pipeline before removing elements
Fixes
#10430
parent
1692f3ed
Pipeline
#7278
passed with stages
in 7 minutes and 11 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
gajim/gtk/video_preview.py
gajim/gtk/video_preview.py
+8
-6
No files found.
gajim/gtk/video_preview.py
View file @
76501abf
...
...
@@ -98,12 +98,14 @@ def _enable_preview(self):
def
_disable_preview
(
self
):
if
self
.
_av_pipeline
is
not
None
:
self
.
_av_pipeline
.
set_state
(
Gst
.
State
.
NULL
)
if
self
.
_av_src
is
not
None
:
self
.
_av_pipeline
.
remove
(
self
.
_av_src
)
self
.
_av_src
=
None
if
self
.
_av_sink
is
not
None
:
self
.
_av_pipeline
.
remove
(
self
.
_av_sink
)
self
.
_av_sink
=
None
if
self
.
_av_src
is
not
None
:
self
.
_av_pipeline
.
remove
(
self
.
_av_src
)
if
self
.
_av_sink
is
not
None
:
self
.
_av_pipeline
.
remove
(
self
.
_av_sink
)
self
.
_av_src
=
None
self
.
_av_sink
=
None
if
self
.
_av_widget
is
not
None
:
self
.
_ui
.
video_preview_box
.
remove
(
self
.
_av_widget
)
self
.
_ui
.
video_preview_placeholder
.
set_visible
(
True
)
...
...
Michel Le Bihan
@mimi89999
mentioned in issue
#10438 (closed)
·
Feb 11, 2021
mentioned in issue
#10438 (closed)
mentioned in issue #10438
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