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
b320d38a
Commit
b320d38a
authored
Mar 04, 2006
by
Christophe Mutricy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fileinfo.*: Don't show stats when they qre disable.
parent
6ad64134
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
modules/gui/wxwidgets/dialogs/fileinfo.cpp
modules/gui/wxwidgets/dialogs/fileinfo.cpp
+9
-5
modules/gui/wxwidgets/dialogs/fileinfo.hpp
modules/gui/wxwidgets/dialogs/fileinfo.hpp
+1
-0
No files found.
modules/gui/wxwidgets/dialogs/fileinfo.cpp
View file @
b320d38a
...
...
@@ -58,7 +58,7 @@ FileInfo::FileInfo( intf_thread_t *_p_intf, wxWindow *p_parent ):
playlist_t
*
p_playlist
=
(
playlist_t
*
)
vlc_object_find
(
p_intf
,
VLC_OBJECT_PLAYLIST
,
FIND_ANYWHERE
);
bool
b_stats
=
config_GetInt
(
p_intf
,
"stats"
);
/* Initializations */
SetIcon
(
*
p_intf
->
p_sys
->
p_icon
);
SetAutoLayout
(
TRUE
);
...
...
@@ -71,11 +71,13 @@ FileInfo::FileInfo( intf_thread_t *_p_intf, wxWindow *p_parent ):
#endif
item_info
=
new
MetaDataPanel
(
p_intf
,
notebook
,
false
);
advanced_info
=
new
AdvancedInfoPanel
(
p_intf
,
notebook
);
stats_info
=
new
InputStatsInfoPanel
(
p_intf
,
notebook
);
if
(
b_stats
)
stats_info
=
new
InputStatsInfoPanel
(
p_intf
,
notebook
);
notebook
->
AddPage
(
item_info
,
wxU
(
_
(
"General"
)
),
true
);
notebook
->
AddPage
(
advanced_info
,
wxU
(
_
(
"Advanced information"
)
),
false
);
notebook
->
AddPage
(
stats_info
,
wxU
(
_
(
"Statistics"
)
),
false
);
if
(
b_stats
)
notebook
->
AddPage
(
stats_info
,
wxU
(
_
(
"Statistics"
)
),
false
);
#if (!wxCHECK_VERSION(2,5,2))
panel_sizer
->
Add
(
notebook_sizer
,
1
,
wxEXPAND
|
wxALL
,
5
);
...
...
@@ -117,7 +119,8 @@ void FileInfo::Update()
{
item_info
->
Clear
();
advanced_info
->
Clear
();
stats_info
->
Clear
();
if
(
b_stats
)
stats_info
->
Clear
();
vlc_object_release
(
p_playlist
);
return
;
}
...
...
@@ -131,7 +134,8 @@ void FileInfo::Update()
vlc_mutex_lock
(
&
p_input
->
input
.
p_item
->
lock
);
advanced_info
->
Update
(
p_input
->
input
.
p_item
);
}
stats_info
->
Update
(
p_input
->
input
.
p_item
);
if
(
b_stats
)
stats_info
->
Update
(
p_input
->
input
.
p_item
);
vlc_mutex_unlock
(
&
p_input
->
input
.
p_item
->
lock
);
vlc_object_release
(
p_input
);
...
...
modules/gui/wxwidgets/dialogs/fileinfo.hpp
View file @
b320d38a
...
...
@@ -58,6 +58,7 @@ namespace wxvlc
InputStatsInfoPanel
*
stats_info
;
wxBoxSizer
*
panel_sizer
;
bool
b_stats
;
};
};
...
...
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