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
d49615b4
Commit
d49615b4
authored
Aug 22, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use FIND_CHILD when possible to look for the vout as suggested by dionoea and nefrir
parent
b38e99dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
10 deletions
+15
-10
modules/gui/qt4/components/extended_panels.cpp
modules/gui/qt4/components/extended_panels.cpp
+15
-10
No files found.
modules/gui/qt4/components/extended_panels.cpp
View file @
d49615b4
...
...
@@ -94,6 +94,7 @@ ExtVideo::ExtVideo( intf_thread_t *_p_intf, QTabWidget *_parent ) :
p_intf
(
_p_intf
)
{
ui
.
setupUi
(
_parent
);
p_vout
=
NULL
;
#define SETUP_VFILTER( widget ) \
{ \
...
...
@@ -221,14 +222,18 @@ ExtVideo::~ExtVideo()
void
ExtVideo
::
cropChange
()
{
p_vout
=
(
vout_thread_t
*
)
vlc_object_find
(
p_intf
,
VLC_OBJECT_VOUT
,
FIND_ANYWHERE
);
if
(
p_vout
)
if
(
THEMIM
->
getInput
()
)
{
var_SetInteger
(
p_vout
,
"crop-top"
,
ui
.
cropTopPx
->
value
()
);
var_SetInteger
(
p_vout
,
"crop-bottom"
,
ui
.
cropBotPx
->
value
()
);
var_SetInteger
(
p_vout
,
"crop-left"
,
ui
.
cropLeftPx
->
value
()
);
var_SetInteger
(
p_vout
,
"crop-right"
,
ui
.
cropRightPx
->
value
()
);
p_vout
=
(
vout_thread_t
*
)
vlc_object_find
(
THEMIM
->
getInput
(),
VLC_OBJECT_VOUT
,
FIND_CHILD
);
if
(
p_vout
)
{
var_SetInteger
(
p_vout
,
"crop-top"
,
ui
.
cropTopPx
->
value
()
);
var_SetInteger
(
p_vout
,
"crop-bottom"
,
ui
.
cropBotPx
->
value
()
);
var_SetInteger
(
p_vout
,
"crop-left"
,
ui
.
cropLeftPx
->
value
()
);
var_SetInteger
(
p_vout
,
"crop-right"
,
ui
.
cropRightPx
->
value
()
);
}
vlc_object_release
(
p_vout
);
}
}
...
...
@@ -327,8 +332,9 @@ void ExtVideo::ChangeVFiltersString( char *psz_name, bool b_add )
ui
.
subpictureFilterText
->
setText
(
psz_string
);
/* Try to set on the fly */
p_vout
=
(
vout_thread_t
*
)
vlc_object_find
(
p_intf
,
VLC_OBJECT_VOUT
,
FIND_ANYWHERE
);
if
(
THEMIM
->
getInput
()
)
p_vout
=
(
vout_thread_t
*
)
vlc_object_find
(
THEMIM
->
getInput
(),
VLC_OBJECT_VOUT
,
FIND_CHILD
);
if
(
p_vout
)
{
if
(
!
strcmp
(
psz_filter_type
,
"sub-filter"
)
)
...
...
@@ -344,7 +350,6 @@ void ExtVideo::ChangeVFiltersString( char *psz_name, bool b_add )
void
ExtVideo
::
updateFilters
()
{
QString
module
=
ModuleFromWidgetName
(
sender
()
);
//std::cout << "Module name: " << module.toStdString() << std::endl;
QCheckBox
*
checkbox
=
qobject_cast
<
QCheckBox
*>
(
sender
()
);
QGroupBox
*
groupbox
=
qobject_cast
<
QGroupBox
*>
(
sender
()
);
...
...
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