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
0ee14188
Commit
0ee14188
authored
Dec 21, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add module_Exists until I don't get any error on my build tree!
parent
f3f2b962
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
19 deletions
+44
-19
modules/gui/qt4/components/simple_preferences.cpp
modules/gui/qt4/components/simple_preferences.cpp
+44
-19
No files found.
modules/gui/qt4/components/simple_preferences.cpp
View file @
0ee14188
...
...
@@ -347,28 +347,41 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
addToCachingBox
(
"Higher latency"
,
CachingHigher
);
#define TestCaC( name ) \
b_cache_equal = b_cache_equal && ( i_cache == config_GetInt( p_intf, name ) );
b_cache_equal = b_cache_equal && \
( i_cache == config_GetInt( p_intf, name ) )
#define TestCaCi( name, int ) \
b_cache_equal = b_cache_equal && \
( ( i_cache * int ) == config_GetInt( p_intf, name ) )
;
( ( i_cache * int ) == config_GetInt( p_intf, name ) )
/* Select the accurate value of the ComboBox */
bool
b_cache_equal
=
true
;
int
i_cache
=
config_GetInt
(
p_intf
,
"file-caching"
);
TestCaC
(
"udp-caching"
)
TestCaC
(
"dvdread-caching"
)
TestCaC
(
"dvdnav-caching"
)
TestCaC
(
"tcp-caching"
)
TestCaC
(
"fake-caching"
)
TestCaC
(
"cdda-caching"
)
TestCaC
(
"screen-caching"
)
TestCaC
(
"vcd-caching"
)
TestCaC
(
"udp-caching"
);
if
(
module_Exists
(
p_intf
,
"dvdread"
))
TestCaC
(
"dvdread-caching"
);
if
(
module_Exists
(
p_intf
,
"dvdnav"
))
TestCaC
(
"dvdnav-caching"
);
TestCaC
(
"tcp-caching"
);
TestCaC
(
"fake-caching"
);
TestCaC
(
"cdda-caching"
);
TestCaC
(
"screen-caching"
);
TestCaC
(
"vcd-caching"
);
#ifdef WIN32
TestCaC
(
"dshow-caching"
)
TestCaC
(
"dshow-caching"
)
;
#else
TestCaC
(
"v4l-caching"
)
TestCaC
(
"jack-input-caching"
)
TestCaC
(
"v4l2-caching"
)
TestCaC
(
"pvr-caching"
)
if
(
module_Exists
(
p_intf
,
"v4l"
))
TestCaC
(
"v4l-caching"
);
if
(
module_Exists
(
p_intf
,
"access_jack"
))
TestCaC
(
"jack-input-caching"
);
if
(
module_Exists
(
p_intf
,
"v4l2"
))
TestCaC
(
"v4l2-caching"
);
if
(
module_Exists
(
p_intf
,
"pvr"
))
TestCaC
(
"pvr-caching"
);
#endif
TestCaCi
(
"rtsp-caching"
,
4
)
TestCaCi
(
"ftp-caching"
,
2
)
TestCaCi
(
"http-caching"
,
4
)
TestCaCi
(
"realrtsp-caching"
,
10
)
TestCaCi
(
"mms-caching"
,
19
)
TestCaCi
(
"rtsp-caching"
,
4
);
TestCaCi
(
"ftp-caching"
,
2
);
TestCaCi
(
"http-caching"
,
4
);
if
(
module_Exists
(
p_intf
,
"access_realrtsp"
))
TestCaCi
(
"realrtsp-caching"
,
10
);
TestCaCi
(
"mms-caching"
,
19
);
if
(
b_cache_equal
)
ui
.
cachingCombo
->
setCurrentIndex
(
ui
.
cachingCombo
->
findData
(
QVariant
(
i_cache
)
)
);
...
...
@@ -516,26 +529,38 @@ void SPrefsPanel::apply()
saveBox
(
"bandwidth"
,
qobject_cast
<
QCheckBox
*>
(
optionWidgets
[
bandwidthChB
]
)
);
config_PutPsz
(
p_intf
,
"access-filter"
,
qtu
(
qs_filter
)
);
#define CaCi( name, int ) config_PutInt( p_intf, name, int * i_comboValue )
;
#define CaC( name ) CaCi( name, 1 )
;
#define CaCi( name, int ) config_PutInt( p_intf, name, int * i_comboValue )
#define CaC( name ) CaCi( name, 1 )
/* Caching */
QComboBox
*
cachingCombo
=
qobject_cast
<
QComboBox
*>
(
optionWidgets
[
cachingCoB
]);
int
i_comboValue
=
cachingCombo
->
itemData
(
cachingCombo
->
currentIndex
()
).
toInt
();
if
(
i_comboValue
)
{
msg_Dbg
(
p_intf
,
"Adjusting all cache values at: %i"
,
i_comboValue
);
CaC
(
"udp-caching"
);
CaC
(
"dvdread-caching"
);
CaC
(
"dvdnav-caching"
);
CaC
(
"tcp-caching"
);
CaC
(
"vcd-caching"
);
CaC
(
"udp-caching"
);
if
(
module_Exists
(
p_intf
,
"dvdread"
))
CaC
(
"dvdread-caching"
);
if
(
module_Exists
(
p_intf
,
"dvdnav"
))
CaC
(
"dvdnav-caching"
);
CaC
(
"tcp-caching"
);
CaC
(
"vcd-caching"
);
CaC
(
"fake-caching"
);
CaC
(
"cdda-caching"
);
CaC
(
"file-caching"
);
CaC
(
"screen-caching"
);
CaCi
(
"rtsp-caching"
,
4
);
CaCi
(
"ftp-caching"
,
2
);
CaCi
(
"http-caching"
,
4
);
CaCi
(
"realrtsp-caching"
,
10
);
CaCi
(
"http-caching"
,
4
);
if
(
module_Exists
(
p_intf
,
"access_realrtsp"
))
CaCi
(
"realrtsp-caching"
,
10
);
CaCi
(
"mms-caching"
,
19
);
#ifdef WIN32
CaC
(
"dshow-caching"
);
#else
CaC
(
"v4l-caching"
);
CaC
(
"jack-input-caching"
);
CaC
(
"v4l2-caching"
);
CaC
(
"pvr-caching"
);
if
(
module_Exists
(
p_intf
,
"v4l"
))
CaC
(
"v4l-caching"
);
if
(
module_Exists
(
p_intf
,
"access_jack"
))
CaC
(
"jack-input-caching"
);
if
(
module_Exists
(
p_intf
,
"v4l2"
))
CaC
(
"v4l2-caching"
);
if
(
module_Exists
(
p_intf
,
"pvr"
))
CaC
(
"pvr-caching"
);
#endif
//CaCi( "dv-caching" ) too short...
}
...
...
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