Opened 13 years ago

Closed 13 years ago

#3425 closed defect (fixed)

Segfault when attempting to play a zero byte file

Reported by: stuartm Owned by: stuartm
Priority: minor Milestone: 0.21
Component: mythtv Version: head
Severity: low Keywords:
Cc: Ticket locked: no

Description

An earlier error had left a zero byte file for a failed recording. Attempting to play this file results in a segfault in DecoderBase::GetFramesRead? - backtrace attached.

Attachments (2)

segfault.txt (24.6 KB) - added by stuartm 13 years ago.
Backtrace
ticket_3425_fix.diff (740 bytes) - added by skamithi 13 years ago.
check if GetDecoder?() exists.. needed since I changed IsNearEnd? to work with prerecorded shows.

Download all attachments as: .zip

Change History (7)

Changed 13 years ago by stuartm

Attachment: segfault.txt added

Backtrace

comment:1 Changed 13 years ago by skamithi

Owner: changed from Isaac Richards to skamithi
Status: newassigned

Changed 13 years ago by skamithi

Attachment: ticket_3425_fix.diff added

check if GetDecoder?() exists.. needed since I changed IsNearEnd? to work with prerecorded shows.

comment:2 Changed 13 years ago by skamithi

Milestone: unknown0.21

comment:3 Changed 13 years ago by skamithi

(In [13425]) Refs #3425. check for decoder in IsNearEnd?(). stuartm might add a user warning for zero byte files

comment:4 Changed 13 years ago by skamithi

Owner: changed from skamithi to stuartm
Status: assignednew

comment:5 Changed 13 years ago by stuartm

Resolution: fixed
Status: newclosed

(In [13497]) Closes #3425

Display a warning instead of starting playback when a user tries to play a zero-byte (empty) file.

Note: See TracTickets for help on using tickets.