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
ba836c7e
Commit
ba836c7e
authored
Dec 21, 2007
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4 - We DO need pulling for the stats in MediaInfo Dialog... Revert part of 23590.
parent
d2b84199
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
1 deletion
+23
-1
modules/gui/qt4/dialogs/mediainfo.cpp
modules/gui/qt4/dialogs/mediainfo.cpp
+21
-1
modules/gui/qt4/dialogs/mediainfo.hpp
modules/gui/qt4/dialogs/mediainfo.hpp
+2
-0
No files found.
modules/gui/qt4/dialogs/mediainfo.cpp
View file @
ba836c7e
...
@@ -42,6 +42,7 @@ MediaInfoDialog::MediaInfoDialog( intf_thread_t *_p_intf,
...
@@ -42,6 +42,7 @@ MediaInfoDialog::MediaInfoDialog( intf_thread_t *_p_intf,
{
{
p_item
=
_p_item
;
p_item
=
_p_item
;
b_cleaned
=
true
;
b_cleaned
=
true
;
i_runs
=
0
;
setWindowTitle
(
qtr
(
"Media information"
)
);
setWindowTitle
(
qtr
(
"Media information"
)
);
resize
(
600
,
480
);
resize
(
600
,
480
);
...
@@ -92,7 +93,9 @@ MediaInfoDialog::MediaInfoDialog( intf_thread_t *_p_intf,
...
@@ -92,7 +93,9 @@ MediaInfoDialog::MediaInfoDialog( intf_thread_t *_p_intf,
/* Call update by hand, so info is shown from current item too */
/* Call update by hand, so info is shown from current item too */
if
(
THEMIM
->
getInput
()
)
if
(
THEMIM
->
getInput
()
)
update
(
input_GetItem
(
THEMIM
->
getInput
()),
true
,
true
);
update
(
input_GetItem
(
THEMIM
->
getInput
()
),
true
,
true
);
if
(
stats
)
ON_TIMEOUT
(
updateOnTimeOut
()
);
}
}
MediaInfoDialog
::~
MediaInfoDialog
()
MediaInfoDialog
::~
MediaInfoDialog
()
...
@@ -138,6 +141,23 @@ void MediaInfoDialog::update( input_thread_t *p_input )
...
@@ -138,6 +141,23 @@ void MediaInfoDialog::update( input_thread_t *p_input )
vlc_object_release
(
p_input
);
vlc_object_release
(
p_input
);
}
}
void
MediaInfoDialog
::
updateOnTimeOut
()
{
/* Timer runs at 150 ms, dont' update more than 2 times per second */
i_runs
++
;
if
(
i_runs
%
4
!=
0
)
return
;
/* Get Input and clear if non-existant */
input_thread_t
*
p_input
=
THEMIM
->
getInput
();
if
(
p_input
&&
!
p_input
->
b_dead
)
{
vlc_object_yield
(
p_input
);
update
(
input_GetItem
(
p_input
),
false
,
false
);
vlc_object_release
(
p_input
);
}
}
void
MediaInfoDialog
::
update
(
input_item_t
*
p_item
,
void
MediaInfoDialog
::
update
(
input_item_t
*
p_item
,
bool
update_info
,
bool
update_info
,
bool
update_meta
)
bool
update_meta
)
...
...
modules/gui/qt4/dialogs/mediainfo.hpp
View file @
ba836c7e
...
@@ -70,6 +70,7 @@ private:
...
@@ -70,6 +70,7 @@ private:
bool
mainInput
;
bool
mainInput
;
bool
stats
;
bool
stats
;
bool
b_cleaned
;
bool
b_cleaned
;
int
i_runs
;
QTabWidget
*
IT
;
QTabWidget
*
IT
;
InputStatsPanel
*
ISP
;
InputStatsPanel
*
ISP
;
...
@@ -85,6 +86,7 @@ public slots:
...
@@ -85,6 +86,7 @@ public slots:
void
update
(
input_item_t
*
,
bool
,
bool
);
void
update
(
input_item_t
*
,
bool
,
bool
);
private
slots
:
private
slots
:
void
updateOnTimeOut
();
void
close
();
void
close
();
void
clear
();
void
clear
();
void
saveMeta
();
void
saveMeta
();
...
...
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