Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
35b5b554
Commit
35b5b554
authored
Feb 14, 2003
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small improvement.
parent
ce3ea763
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
2 deletions
+18
-2
modules/misc/qte_main.cpp
modules/misc/qte_main.cpp
+18
-2
No files found.
modules/misc/qte_main.cpp
View file @
35b5b554
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* qte_main.c : QT Embedded wrapper for gte_main
* qte_main.c : QT Embedded wrapper for gte_main
*****************************************************************************
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* Copyright (C) 2003 VideoLAN
* $Id: qte_main.cpp,v 1.
1 2003/01/19 22:16:13
jpsaman Exp $
* $Id: qte_main.cpp,v 1.
2 2003/02/14 13:01:02
jpsaman Exp $
*
*
* Authors: Jean-Paul Saman <jpsaman@wxs.nl>
* Authors: Jean-Paul Saman <jpsaman@wxs.nl>
*
*
...
@@ -31,6 +31,7 @@ extern "C"
...
@@ -31,6 +31,7 @@ extern "C"
}
}
#include <qapplication.h>
#include <qapplication.h>
#include <qpainter.h>
extern
"C"
extern
"C"
{
{
...
@@ -40,6 +41,7 @@ typedef struct qte_thread_t
...
@@ -40,6 +41,7 @@ typedef struct qte_thread_t
VLC_COMMON_MEMBERS
VLC_COMMON_MEMBERS
QApplication
*
p_qte_application
;
QApplication
*
p_qte_application
;
QWidget
*
p_qte_widget
;
}
qte_thread_t
;
}
qte_thread_t
;
...
@@ -132,6 +134,10 @@ static void Close( vlc_object_t *p_this )
...
@@ -132,6 +134,10 @@ static void Close( vlc_object_t *p_this )
p_qte_main
->
p_qte_application
->
quit
();
p_qte_main
->
p_qte_application
->
quit
();
vlc_thread_join
(
p_qte_main
);
vlc_thread_join
(
p_qte_main
);
/* Cleanup allocated classes. */
delete
p_qte_main
->
p_qte_application
;
delete
p_qte_main
->
p_qte_widget
;
vlc_object_destroy
(
p_qte_main
);
vlc_object_destroy
(
p_qte_main
);
p_qte_main
=
NULL
;
p_qte_main
=
NULL
;
...
@@ -157,11 +163,21 @@ static void QteMain( qte_thread_t *p_this )
...
@@ -157,11 +163,21 @@ static void QteMain( qte_thread_t *p_this )
}
}
msg_Dbg
(
p_this
,
"qte_main: qte application created"
);
msg_Dbg
(
p_this
,
"qte_main: qte application created"
);
QWidget
*
pWidget
=
new
QWidget
();
if
(
pWidget
)
{
p_this
->
p_qte_widget
=
pWidget
;
}
msg_Dbg
(
p_this
,
"qte_main: qte dummy widget created"
);
/* signal the creation of the window */
/* signal the creation of the window */
p_this
->
p_qte_application
->
setMainWidget
(
p_this
->
p_qte_widget
);
vlc_thread_ready
(
p_this
);
vlc_thread_ready
(
p_this
);
msg_Dbg
(
p_this
,
"qte_main: qte application thread ready"
);
msg_Dbg
(
p_this
,
"qte_main: qte application thread ready"
);
p_this
->
p_qte_application
->
exec
();
p_this
->
p_qte_application
->
exec
();
msg_Dbg
(
p_this
,
"qte_main: leaving"
);
msg_Dbg
(
p_this
,
"qte_main: leaving"
);
}
}
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