Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
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
videolan
vlc-2-2
Commits
2ddb54ad
Commit
2ddb54ad
authored
Apr 24, 2004
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Properly attach and detach the qte_main object
parent
4526bdb8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
modules/misc/qte_main.cpp
modules/misc/qte_main.cpp
+7
-4
No files found.
modules/misc/qte_main.cpp
View file @
2ddb54ad
...
...
@@ -116,6 +116,9 @@ static int Open( vlc_object_t *p_this )
i_refcount
++
;
vlc_mutex_unlock
(
(
vlc_mutex_t
*
)
lockval
.
p_address
);
vlc_object_attach
(
p_qte_main
,
p_this
);
msg_Dbg
(
p_this
,
"qte_main running"
);
return
VLC_SUCCESS
;
}
...
...
@@ -143,6 +146,9 @@ static void Close( vlc_object_t *p_this )
delete
p_qte_main
->
p_qte_widget
;
delete
p_qte_main
->
p_qte_application
;
msg_Dbg
(
p_this
,
"Detaching qte_main"
);
vlc_object_detach
(
p_qte_main
);
vlc_object_destroy
(
p_qte_main
);
p_qte_main
=
NULL
;
...
...
@@ -175,15 +181,12 @@ static void QteMain( qte_thread_t *p_this )
p_this
->
p_qte_application
=
pApp
;
}
QWidget
*
pWidget
=
new
QWidget
();
QWidget
*
pWidget
=
new
QWidget
(
0
,
_
(
"video"
)
);
if
(
pWidget
)
{
p_this
->
p_qte_widget
=
pWidget
;
}
if
(
p_this
->
b_gui_server
)
{
p_this
->
p_qte_application
->
desktop
()
->
setFixedSize
(
240
,
320
);
}
/* signal the creation of the window */
p_this
->
p_qte_application
->
setMainWidget
(
p_this
->
p_qte_widget
);
p_this
->
p_qte_widget
->
show
();
...
...
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