Opened 14 years ago

Closed 14 years ago

#8911 closed defect (fixed)

PBB requests of previews while playback running glitches playback

Reported by: beirdo Owned by: danielk
Priority: minor Milestone: 0.24
Component: MythTV - Video Playback Version: Master Head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

When a new recording starts or a recording finishes (?), the PBB is asking for the previews even when it's not visible due to playback of video. Often when this happens, it seems to affect the playback, causing noticible halts.

2010-09-09 20:59:30.548 TV: ASK_RECORDING 7 29 0 0 hasrec: 0 haslater: 0
2010-09-09 20:59:30.648 TV: ASK_RECORDING 1 29 0 0 hasrec: 0 haslater: 0
2010-09-09 20:59:30.815 TV: ASK_RECORDING 6 29 0 0 hasrec: 0 haslater: 0
2010-09-09 21:00:14.835 SendReceiveStringList(QUERY_SG_FILEQUERY,192.168.1.5...) called from UI thread
2010-09-09 21:00:15.518 SendReceiveStringList(QUERY_SG_FILEQUERY,192.168.1.5...) called from UI thread
2010-09-09 21:00:15.568 ALSA, Error: WriteAudio: buffer underrun
2010-09-09 21:00:15.888 PlaybackBox Error: Ignoring PREVIEW_SUCCESS, item no longer on screen.
2010-09-09 21:00:16.065 HandlePreviewEvent() -- too few args
2010-09-09 21:00:16.065 0: 1296_2010-09-09T20:30:00
2010-09-09 21:00:16.065 1: /opt/mythtv/video1/default/1296_20100909203000.mpg.png
2010-09-09 21:00:16.065 2: Generated on mythtv in 13.335 seconds, starting at 21:00:02
2010-09-09 21:00:16.065 3: 2010-09-09T21:00:05
2010-09-09 21:00:16.071 ALSA, Error: WriteAudio: buffer underrun
2010-09-09 21:00:17.300 PlaybackBox Error: Ignoring PREVIEW_SUCCESS, item no longer on screen.

Additionally, some of the HandlePreviewEvent? calls (as above) seem to be missing an argument (the code wants >= 5, there are 4 reported). Not sure if these two things are related.

Change History (5)

comment:1 Changed 14 years ago by robertm

Status: newassigned

comment:2 Changed 14 years ago by danielk

Milestone: unknown0.24

comment:3 Changed 14 years ago by beirdo

An update...

Due to following the advice in [26286], I have increased my ALSA buffer to 512kB. This glitchiness has gone away.

The HandlePreviewEvent?() with not enough arguments still occurs, but the ALSA underruns have seemingly disappeared.

comment:4 Changed 14 years ago by danielk

(In [26379]) Refs #8911. Preserve preview gen token even if it was not set when the request for the preview was made. This quiets a complaint from the PBB event handler.

comment:5 Changed 14 years ago by danielk

Resolution: fixed
Status: assignedclosed

(In [26380]) Fixes #8911. When we request a preview at the end of a recording or commflag we should not be broadcasting this as the message will be ignored anyway. The preview will get updated if on screen the next time the user moves their selection in the PBB.

Note: See TracTickets for help on using tickets.