vdr-1.3.21: keep language name on audio menu in transfer mode

Message ID 420F9632.9030205@ventoso.org
State New
Headers

Commit Message

Luca Olivetti Feb. 13, 2005, 6:02 p.m. UTC
  Wolfgang Rohdewald wrote:
> On Sonntag 13 Februar 2005 18:28, Luca Olivetti wrote:
> 
>>if not Player is cTransferControl
> 
> 
> if (!dynamic_cast<cTransferControl>(Player))

close, it's "if (!dynamic_cast<cTransfer*>(Player))" (my fault in using 
cTransferControl instead of cTransfer).
Attached is the new patch that only modifies device.c
Thank you.

Bye
  

Comments

Klaus Schmidinger Feb. 19, 2005, 2:50 p.m. UTC | #1
Luca Olivetti wrote:
> Wolfgang Rohdewald wrote:
> 
>> On Sonntag 13 Februar 2005 18:28, Luca Olivetti wrote:
>>
>>> if not Player is cTransferControl
>>
>>
>>
>> if (!dynamic_cast<cTransferControl>(Player))
> 
> 
> close, it's "if (!dynamic_cast<cTransfer*>(Player))" (my fault in using 
> cTransferControl instead of cTransfer).
> Attached is the new patch that only modifies device.c

I'm afraid I don't quite see the problem.
When I switch to a channel that is received in Transfer Mode,
and then open the "Audio" menu, I very well see the descriptions
of the audio tracks.

Klaus
  
Rolf Ahrenberg Feb. 19, 2005, 3:18 p.m. UTC | #2
On Sat, 19 Feb 2005, Klaus Schmidinger wrote:

> I'm afraid I don't quite see the problem.
> When I switch to a channel that is received in Transfer Mode,
> and then open the "Audio" menu, I very well see the descriptions
> of the audio tracks.

Well, in my setup (Airstar2 + FF DVB-S) audio tracks of the finnish
terrestial channels are shown only as numbers ("1"), but after the
patch the correct language code is finally shown as description
("fin"). So there's a problem lying somewhere...

--
rofa
  
Klaus Schmidinger Feb. 19, 2005, 3:28 p.m. UTC | #3
Rolf Ahrenberg wrote:
> On Sat, 19 Feb 2005, Klaus Schmidinger wrote:
> 
>> I'm afraid I don't quite see the problem.
>> When I switch to a channel that is received in Transfer Mode,
>> and then open the "Audio" menu, I very well see the descriptions
>> of the audio tracks.
> 
> 
> Well, in my setup (Airstar2 + FF DVB-S) audio tracks of the finnish
> terrestial channels are shown only as numbers ("1"), but after the
> patch the correct language code is finally shown as description
> ("fin"). So there's a problem lying somewhere...

Ah, I guess I was looking at channels that actually _have_ descriptions
for the audio tracks (in the EPG data!) ;-)

Ok, on channels that don't have such descriptions you are probably right.
I'll look into this when building in handling of track descriptions for
recordings.

Klaus
  
C.Y.M Feb. 19, 2005, 3:29 p.m. UTC | #4
Klaus Schmidinger wrote:
> Luca Olivetti wrote:
> 
>> Wolfgang Rohdewald wrote:
>>
>>> On Sonntag 13 Februar 2005 18:28, Luca Olivetti wrote:
>>>
>>>> if not Player is cTransferControl
>>>
>>>
>>>
>>>
>>> if (!dynamic_cast<cTransferControl>(Player))
>>
>>
>>
>> close, it's "if (!dynamic_cast<cTransfer*>(Player))" (my fault in 
>> using cTransferControl instead of cTransfer).
>> Attached is the new patch that only modifies device.c
> 
> 
> I'm afraid I don't quite see the problem.
> When I switch to a channel that is received in Transfer Mode,
> and then open the "Audio" menu, I very well see the descriptions
> of the audio tracks.
> 

To reproduce the bug, switch to a channel and select the audio menu.  Close the 
menu, then go back to the audio menu again and instead of descriptions of the 
audio selections, vdr just displays numbers.

Regards,
  

Patch

--- device.c.orig	2005-02-13 17:38:45.009642660 +0100
+++ device.c	2005-02-13 19:00:20.160941034 +0100
@@ -818,7 +818,7 @@ 
   if (CanReplay()) {
      if (player)
         Detach(player);
-     ClrAvailableTracks();
+     if (!dynamic_cast<cTransfer*>(Player)) ClrAvailableTracks();
      pesAssembler->Reset();
      player = Player;
      SetPlayMode(player->playMode);