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
540bcfd7
Commit
540bcfd7
authored
Jun 15, 2010
by
Adrien Maglo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: test if EPG events are the same by also comparing the start time.
parent
c4ffaad9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
modules/gui/qt4/components/epg/EPGWidget.cpp
modules/gui/qt4/components/epg/EPGWidget.cpp
+6
-3
No files found.
modules/gui/qt4/components/epg/EPGWidget.cpp
View file @
540bcfd7
...
...
@@ -83,19 +83,22 @@ void EPGWidget::updateEPG( vlc_epg_t **pp_epg, int i_epg )
EPGEvent
*
item
=
NULL
;
vlc_epg_event_t
*
p_event
=
p_epg
->
pp_event
[
j
];
QString
eventName
=
qfu
(
p_event
->
psz_name
);
QDateTime
eventStart
=
QDateTime
::
fromTime_t
(
p_event
->
i_start
);
QList
<
EPGEvent
*>
events
=
m_events
.
values
(
channelName
);
for
(
int
k
=
0
;
k
<
events
.
count
();
++
k
)
{
if
(
events
.
at
(
k
)
->
name
==
eventName
&&
events
.
at
(
k
)
->
channelName
==
channelName
)
events
.
at
(
k
)
->
channelName
==
channelName
&&
events
.
at
(
k
)
->
start
==
eventStart
)
{
/* Update the event. */
item
=
events
.
at
(
k
);
item
->
updated
=
true
;
item
->
description
=
qfu
(
p_event
->
psz_description
);
item
->
shortDescription
=
qfu
(
p_event
->
psz_short_description
);
item
->
start
=
QDateTime
::
fromTime_t
(
p_event
->
i_start
)
;
item
->
start
=
eventStart
;
item
->
duration
=
p_event
->
i_duration
;
item
->
current
=
(
p_epg
->
p_current
==
p_event
)
?
true
:
false
;
...
...
@@ -112,7 +115,7 @@ void EPGWidget::updateEPG( vlc_epg_t **pp_epg, int i_epg )
item
=
new
EPGEvent
(
eventName
);
item
->
description
=
qfu
(
p_event
->
psz_description
);
item
->
shortDescription
=
qfu
(
p_event
->
psz_short_description
);
item
->
start
=
QDateTime
::
fromTime_t
(
p_event
->
i_start
)
;
item
->
start
=
eventStart
;
item
->
duration
=
p_event
->
i_duration
;
item
->
channelName
=
channelName
;
item
->
current
=
(
p_epg
->
p_current
==
p_event
)
?
true
:
false
;
...
...
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