﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc	mlocked
5744	Initial tuning to an analogue station fault	anonymous	Janne Grunau	"When initiating a tv session, initial tuning to an analogue
channel fails. All that is produced is noise rather than
a picture.

The fault has been located in:
void TVRec::TuningNewRecorder(MPEGStreamData *streamData)
Line 4002 CloseChannel()

CloseChannel here is called with with the only file descriptor
open on the video device. On certain tv cards at least, closing
that single connection will initiate and a sleep state of
the analogue frontend with loss of all previous tuning detail.
In order to fix this, the CloseChannel call is moved to a later
point where it is known that the video device has been opened
for reading elsewhere.

Testing results in success and inspection of file descriptors
in use by the backend before and after shows no leakage.
"	patch	closed	major	0.21.1	mythtv	0.21-fixes	medium	wontfix	analog analogue	Shane Shrybman	0
