Ticket #8589 (closed defect: fixed)
Opened 20 months ago
Last modified 17 months ago
Recordings are nolonger identified as 720p or 1080i/p since the ProgramInfo refactor.
| Reported by: | MarcT <myrdhn@…> | Owned by: | robertm |
|---|---|---|---|
| Priority: | trivial | Milestone: | 0.24 |
| Component: | MythTV - Recording | Version: | Master Head |
| Severity: | low | Keywords: | |
| Cc: | Ticket locked: | no |
Description
Changes in mythtv/libs/libmyth/programinfo.cpp during the ProgramInfo? refactor r24694 removed funtionality to identify a recording as 1080i/p or 720p.
Attachments
Change History
comment:1 Changed 20 months ago by MarcT <myrdhn@…>
comment:2 Changed 20 months ago by MarcT <myrdhn@…>
Sorry the SQL output came out horrible.
+--------+---------------------+------------+-----------+ | chanid | starttime | title | videoprop | +--------+---------------------+------------+-----------+ | 2804 | 2010-05-03 22:01:00 | CSI: Miami | HDTV,1080 | | 2804 | 2010-05-05 22:00:00 | CSI: NY | HDTV,720 | | 2804 | 2010-05-10 22:01:00 | CSI: Miami | HDTV,1080 | | 2804 | 2010-05-12 22:00:00 | CSI: NY | HDTV,1080 | | 2814 | 2010-05-16 18:00:00 | CSI: Miami | HDTV,1080 | | 2814 | 2010-05-16 23:00:00 | CSI: Miami | HDTV | | 2804 | 2010-05-17 22:01:00 | CSI: Miami | HDTV | | 2804 | 2010-05-19 22:00:00 | CSI: NY | HDTV | | 2814 | 2010-05-23 18:00:00 | CSI: Miami | HDTV | +--------+---------------------+------------+-----------+
comment:5 Changed 17 months ago by danielk
It looks like this is supposed to be handled by the SaveResolutionProperty?() call in TVRec::TeardownRecorder?(). Not sure yet why it is not working.
comment:6 Changed 17 months ago by danielk
- Status changed from assigned to closed
- Resolution set to fixed
comment:7 Changed 17 months ago by David Madsen <david.madsen@…>
In the process of testing this patch I have discovered a small problem with the fix. The SQL query that is updating the flags in the recordedprogram table is matching on STARTTIME == recstartts.
In cases where the recording has a preroll or start early rule the recstartts time will not match the STARTTIME field in the recordedprogram table and the update will not occur.
Changing the binding for :STARTTIME to be startts instead of recstartts fixed the issue for me.
comment:8 Changed 17 months ago by David Madsen <david.madsen@…>
- Status changed from closed to new
- Resolution fixed deleted
comment:11 Changed 17 months ago by robertm
- Status changed from assigned to closed
- Resolution set to fixed
(In [26358]) Restore the original behavior of the markup query SQL to use startts as the key, not recstartts-- since the pginfo refactor and subsequent restoration of this functionality, setting the video flags was failing if the recording had preroll. This should restore reliable behavior to all recordings. Fixes #8589.

There is a specific section of code that was removed that in the programinfo refactor that never had a similar function added to replace the functionality of the removed code.
This is the section that was removed
This is the section that was added.
Looking at these it seems that the code to set the value as 720 or 1080 was removed and no replacement was added.
Here is a select statement from my database from the recordedprogram table
select chanid,starttime,title,videoprop from recordedprogram where title like 'CSI%' order by starttime;
As you can see the 720/1080 is nolonger being sent to the videoprop column in the table since the update I did in between the 2 recordings from May 16th.