Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
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
Show 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 ) :
...
@@ -94,6 +94,7 @@ ExtVideo::ExtVideo( intf_thread_t *_p_intf, QTabWidget *_parent ) :
p_intf
(
_p_intf
)
p_intf
(
_p_intf
)
{
{
ui
.
setupUi
(
_parent
);
ui
.
setupUi
(
_parent
);
p_vout
=
NULL
;
#define SETUP_VFILTER( widget ) \
#define SETUP_VFILTER( widget ) \
{ \
{ \
...
@@ -221,8 +222,10 @@ ExtVideo::~ExtVideo()
...
@@ -221,8 +222,10 @@ ExtVideo::~ExtVideo()
void
ExtVideo
::
cropChange
()
void
ExtVideo
::
cropChange
()
{
{
p_vout
=
(
vout_thread_t
*
)
vlc_object_find
(
p_intf
,
if
(
THEMIM
->
getInput
()
)
VLC_OBJECT_VOUT
,
FIND_ANYWHERE
);
{
p_vout
=
(
vout_thread_t
*
)
vlc_object_find
(
THEMIM
->
getInput
(),
VLC_OBJECT_VOUT
,
FIND_CHILD
);
if
(
p_vout
)
if
(
p_vout
)
{
{
var_SetInteger
(
p_vout
,
"crop-top"
,
ui
.
cropTopPx
->
value
()
);
var_SetInteger
(
p_vout
,
"crop-top"
,
ui
.
cropTopPx
->
value
()
);
...
@@ -230,6 +233,8 @@ void ExtVideo::cropChange()
...
@@ -230,6 +233,8 @@ void ExtVideo::cropChange()
var_SetInteger
(
p_vout
,
"crop-left"
,
ui
.
cropLeftPx
->
value
()
);
var_SetInteger
(
p_vout
,
"crop-left"
,
ui
.
cropLeftPx
->
value
()
);
var_SetInteger
(
p_vout
,
"crop-right"
,
ui
.
cropRightPx
->
value
()
);
var_SetInteger
(
p_vout
,
"crop-right"
,
ui
.
cropRightPx
->
value
()
);
}
}
vlc_object_release
(
p_vout
);
}
}
}
void
ExtVideo
::
ChangeVFiltersString
(
char
*
psz_name
,
bool
b_add
)
void
ExtVideo
::
ChangeVFiltersString
(
char
*
psz_name
,
bool
b_add
)
...
@@ -327,8 +332,9 @@ void ExtVideo::ChangeVFiltersString( char *psz_name, bool b_add )
...
@@ -327,8 +332,9 @@ void ExtVideo::ChangeVFiltersString( char *psz_name, bool b_add )
ui
.
subpictureFilterText
->
setText
(
psz_string
);
ui
.
subpictureFilterText
->
setText
(
psz_string
);
/* Try to set on the fly */
/* Try to set on the fly */
p_vout
=
(
vout_thread_t
*
)
vlc_object_find
(
p_intf
,
VLC_OBJECT_VOUT
,
if
(
THEMIM
->
getInput
()
)
FIND_ANYWHERE
);
p_vout
=
(
vout_thread_t
*
)
vlc_object_find
(
THEMIM
->
getInput
(),
VLC_OBJECT_VOUT
,
FIND_CHILD
);
if
(
p_vout
)
if
(
p_vout
)
{
{
if
(
!
strcmp
(
psz_filter_type
,
"sub-filter"
)
)
if
(
!
strcmp
(
psz_filter_type
,
"sub-filter"
)
)
...
@@ -344,7 +350,6 @@ void ExtVideo::ChangeVFiltersString( char *psz_name, bool b_add )
...
@@ -344,7 +350,6 @@ void ExtVideo::ChangeVFiltersString( char *psz_name, bool b_add )
void
ExtVideo
::
updateFilters
()
void
ExtVideo
::
updateFilters
()
{
{
QString
module
=
ModuleFromWidgetName
(
sender
()
);
QString
module
=
ModuleFromWidgetName
(
sender
()
);
//std::cout << "Module name: " << module.toStdString() << std::endl;
QCheckBox
*
checkbox
=
qobject_cast
<
QCheckBox
*>
(
sender
()
);
QCheckBox
*
checkbox
=
qobject_cast
<
QCheckBox
*>
(
sender
()
);
QGroupBox
*
groupbox
=
qobject_cast
<
QGroupBox
*>
(
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