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
73867cc4
Commit
73867cc4
authored
Apr 22, 2003
by
Olivier Teulière
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* ./modules/gui/wxwindows/fileinfo.cpp: cosmetic changes
parent
8afa30a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
modules/gui/wxwindows/fileinfo.cpp
modules/gui/wxwindows/fileinfo.cpp
+11
-11
No files found.
modules/gui/wxwindows/fileinfo.cpp
View file @
73867cc4
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* fileinfo.cpp : wxWindows plugin for vlc
* fileinfo.cpp : wxWindows plugin for vlc
*****************************************************************************
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
* Copyright (C) 2000-2001 VideoLAN
* $Id: fileinfo.cpp,v 1.1
0 2003/04/21 16:55:53 anil
Exp $
* $Id: fileinfo.cpp,v 1.1
1 2003/04/22 18:21:15 ipkiss
Exp $
*
*
* Authors: Sigmund Augdal <sigmunau@idi.ntnu.no>
* Authors: Sigmund Augdal <sigmunau@idi.ntnu.no>
*
*
...
@@ -123,40 +123,40 @@ void FileInfo::UpdateFileInfo()
...
@@ -123,40 +123,40 @@ void FileInfo::UpdateFileInfo()
{
{
if
(
fileinfo_root
)
if
(
fileinfo_root
)
{
{
fileinfo_tree
->
SetItemText
(
fileinfo_root
,
""
);
fileinfo_root_label
=
""
;
fileinfo_root_label
=
""
;
fileinfo_tree
->
DeleteChildren
(
fileinfo_root
);
fileinfo_tree
->
DeleteChildren
(
fileinfo_root
);
}
}
return
;
return
;
}
}
wxString
inputinfo
=
p_input
->
psz_name
;
if
(
!
fileinfo_root
)
if
(
!
fileinfo_root
)
{
{
/* On linux, the first argument of wxTreeCtrl::AddRoot() can be
* retrieved with the GetItemText() method, but it doesn't work on
* Windows when the wxTR_HIDE_ROOT style is set. That's why we need to
* use the fileinfo_root_label variable... */
fileinfo_root
=
fileinfo_tree
->
AddRoot
(
p_input
->
psz_name
);
fileinfo_root
=
fileinfo_tree
->
AddRoot
(
p_input
->
psz_name
);
fileinfo_root_label
=
p_input
->
psz_name
;
fileinfo_root_label
=
p_input
->
psz_name
;
}
}
else
if
(
fileinfo_root_label
==
inputinfo
)
else
if
(
fileinfo_root_label
==
(
wxString
)
p_input
->
psz_name
)
{
{
return
;
return
;
}
}
/* We rebuild the tree from scratch */
fileinfo_tree
->
DeleteChildren
(
fileinfo_root
);
fileinfo_tree
->
DeleteChildren
(
fileinfo_root
);
fileinfo_root_label
=
p_input
->
psz_name
;
vlc_mutex_lock
(
&
p_input
->
stream
.
stream_lock
);
vlc_mutex_lock
(
&
p_input
->
stream
.
stream_lock
);
fileinfo_tree
->
SetItemText
(
fileinfo_root
,
p_input
->
psz_name
);
fileinfo_root_label
=
p_input
->
psz_name
;
input_info_category_t
*
p_cat
=
p_input
->
stream
.
p_info
;
input_info_category_t
*
p_cat
=
p_input
->
stream
.
p_info
;
while
(
p_cat
)
while
(
p_cat
)
{
{
wxTreeItemId
cat
=
fileinfo_tree
->
AppendItem
(
fileinfo_root
,
wxTreeItemId
cat
=
fileinfo_tree
->
AppendItem
(
fileinfo_root
,
p_cat
->
psz_name
);
p_cat
->
psz_name
);
input_info_t
*
p_info
=
p_cat
->
p_info
;
input_info_t
*
p_info
=
p_cat
->
p_info
;
while
(
p_info
)
while
(
p_info
)
{
{
fileinfo_tree
->
AppendItem
(
cat
,
wxString
(
p_info
->
psz_name
)
+
": "
fileinfo_tree
->
AppendItem
(
cat
,
wxString
(
p_info
->
psz_name
)
+
": "
+
p_info
->
psz_value
);
+
p_info
->
psz_value
);
...
...
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