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
299d029a
Commit
299d029a
authored
Aug 28, 2004
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update the "Stream and Media Info" dialog
parent
43403d1f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
1 deletion
+31
-1
modules/gui/wxwindows/fileinfo.cpp
modules/gui/wxwindows/fileinfo.cpp
+28
-1
modules/gui/wxwindows/wxwindows.h
modules/gui/wxwindows/wxwindows.h
+3
-0
No files found.
modules/gui/wxwindows/fileinfo.cpp
View file @
299d029a
...
...
@@ -33,6 +33,10 @@
* Event Table.
*****************************************************************************/
static
int
ItemChanged
(
vlc_object_t
*
,
const
char
*
,
vlc_value_t
,
vlc_value_t
,
void
*
);
/* IDs for the controls and the menu commands */
enum
{
...
...
@@ -55,6 +59,8 @@ FileInfo::FileInfo( intf_thread_t *_p_intf, wxWindow *p_parent ):
wxFrame
(
p_parent
,
-
1
,
wxU
(
_
(
"Stream and media info"
)),
wxDefaultPosition
,
wxDefaultSize
,
wxDEFAULT_FRAME_STYLE
)
{
playlist_t
*
p_playlist
;
/* Initializations */
p_intf
=
_p_intf
;
SetIcon
(
*
p_intf
->
p_sys
->
p_icon
);
...
...
@@ -80,6 +86,16 @@ FileInfo::FileInfo( intf_thread_t *_p_intf, wxWindow *p_parent ):
main_sizer
->
Layout
();
SetSizerAndFit
(
main_sizer
);
p_playlist
=
(
playlist_t
*
)
vlc_object_find
(
p_intf
,
VLC_OBJECT_PLAYLIST
,
FIND_ANYWHERE
);
if
(
p_playlist
)
{
var_AddCallback
(
p_playlist
,
"item-change"
,
ItemChanged
,
this
);
vlc_object_release
(
p_playlist
);
}
b_need_update
=
VLC_TRUE
;
UpdateFileInfo
();
}
...
...
@@ -107,7 +123,8 @@ void FileInfo::UpdateFileInfo()
fileinfo_tree
->
AddRoot
(
wxL2U
(
p_input
->
input
.
p_item
->
psz_name
)
);
fileinfo_root_label
=
wxL2U
(
p_input
->
input
.
p_item
->
psz_name
);
}
else
if
(
fileinfo_root_label
==
wxL2U
(
p_input
->
input
.
p_item
->
psz_name
)
)
else
if
(
fileinfo_root_label
==
wxL2U
(
p_input
->
input
.
p_item
->
psz_name
)
&&
b_need_update
==
VLC_FALSE
)
{
return
;
}
...
...
@@ -134,6 +151,8 @@ void FileInfo::UpdateFileInfo()
}
vlc_mutex_unlock
(
&
p_input
->
input
.
p_item
->
lock
);
b_need_update
=
VLC_FALSE
;
return
;
}
...
...
@@ -145,3 +164,11 @@ void FileInfo::OnClose( wxCommandEvent& event )
{
Hide
();
}
static
int
ItemChanged
(
vlc_object_t
*
p_this
,
const
char
*
psz_var
,
vlc_value_t
oldval
,
vlc_value_t
newval
,
void
*
param
)
{
FileInfo
*
p_fileinfo
=
(
FileInfo
*
)
param
;
p_fileinfo
->
b_need_update
=
VLC_TRUE
;
return
VLC_SUCCESS
;
}
modules/gui/wxwindows/wxwindows.h
View file @
299d029a
...
...
@@ -913,6 +913,8 @@ public:
virtual
~
FileInfo
();
void
UpdateFileInfo
();
vlc_bool_t
b_need_update
;
private:
void
OnClose
(
wxCommandEvent
&
event
);
...
...
@@ -923,6 +925,7 @@ private:
wxTreeItemId
fileinfo_root
;
wxString
fileinfo_root_label
;
};
#if wxUSE_DRAG_AND_DROP
...
...
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