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

Message ID 420F8E43.6070908@ventoso.org
State New
Headers

Commit Message

Luca Olivetti Feb. 13, 2005, 5:28 p.m. UTC
  The attached patch is a quick hack to keep the language names in the 
audio menu in transfer mode. I had to add a boolean in cPlayer because I 
don't think it's possible to do class introspection in C++ (in Object 
Pascal I'd just do an "if not Player is cTransferControl then 
ClrAvailableTracks").

Bye
  

Comments

Wolfgang Rohdewald Feb. 13, 2005, 5:43 p.m. UTC | #1
On Sonntag 13 Februar 2005 18:28, Luca Olivetti wrote:
> if not Player is cTransferControl

if (!dynamic_cast<cTransferControl>(Player))

should do the same
  
Luke Kenneth Casson Leighton Feb. 13, 2005, 6:09 p.m. UTC | #2
hi, um... i tend to subscribe to mailing lists and then set
them to not send me messages.

that appears to have changed about... yesterday evening - without
my permission.

i _would_ go back to the site and reset it myself - except
www.linuxtv.org is down.

_again_.

could someone advise of a means by which my settings (to not receive
any posts to the list but to remain subscribed) may be restored?

thanks,

l.
  
Anssi Hannula Feb. 13, 2005, 6:13 p.m. UTC | #3
Luke Kenneth Casson Leighton wrote:
> hi, um... i tend to subscribe to mailing lists and then set
> them to not send me messages.
> 
> that appears to have changed about... yesterday evening - without
> my permission.
> 
> i _would_ go back to the site and reset it myself - except
> www.linuxtv.org is down.
> 
> _again_.
> 
> could someone advise of a means by which my settings (to not receive
> any posts to the list but to remain subscribed) may be restored?

linuxtv.org dns entries were changed, it might take some time before it 
works with all ISPs. Here it works already.

http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
  
Rainer Zocholl Feb. 13, 2005, 6:30 p.m. UTC | #4
lkcl@lkcl.net(Luke Kenneth Casson Leighton)  13.02.05 18:09


>hi, um... i tend to subscribe to mailing lists and then set
>them to not send me messages.


Maybe someone wanted to clean up his mailing list list? ;-)



>that appears to have changed about... yesterday evening - without
>my permission.

ACK.


>i _would_ go back to the site and reset it myself - except
>www.linuxtv.org is down.

>_again_.

>could someone advise of a means by which my settings (to not receive
>any posts to the list but to remain subscribed) may be restored?


Sending emails to "vdr-request" with the subjects

set delivery off
set hide on

should do it.


To get your current settings by sending

set show


to get more help sent
set help

in the subject.


But NOT(!) sent to the list use  "vdr-request" at linuxtv.org
  
Rainer Zocholl Feb. 13, 2005, 7:05 p.m. UTC | #5
anssi.hannula@gmail.com(Anssi Hannula)  13.02.05 20:13


>Luke Kenneth Casson Leighton wrote:
>> hi, um... i tend to subscribe to mailing lists and then set
>> them to not send me messages.
>>
>> that appears to have changed about... yesterday evening - without
>> my permission.
>>

>linuxtv.org dns entries were changed, it might take some time before
>it works with all ISPs. Here it works already.

The problem seems to be that they forgot to migrate
the user settings to the new server!

Now we get all those nice "out of office" notices 
of "post only" accounts, burning up those addresses for spammers.

Too all "hide" values are set to "hide off".

Not amused.


>http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr

That should have done the list owner -before- migrating, 
if it was not possible to migrate the settings.

Today its common to block every email from unknown IP.
Without per-information the user suddenly finds all list
in his spam folder, is he did not reject all mails because of
the unknown IP...



Rainer
  
Rainer Zocholl Feb. 13, 2005, 7:06 p.m. UTC | #6
UseNet-Posting-Nospam-74308-@zocki.toppoint.de(Rainer Zocholl)  13.02.05 19:30


>lkcl@lkcl.net(Luke Kenneth Casson Leighton)  13.02.05 18:09

>>hi, um... i tend to subscribe to mailing lists and then set
>>them to not send me messages.


>Maybe someone wanted to clean up his mailing list list? ;-)

>>that appears to have changed about... yesterday evening - without
>>my permission.

>ACK.

>>i _would_ go back to the site and reset it myself - except
>>www.linuxtv.org is down.

>>_again_.

>>could someone advise of a means by which my settings (to not receive
>>any posts to the list but to remain subscribed) may be restored?


>Sending emails to "vdr-request" with the subjects

>set delivery off
>set hide on

>should do it.


>To get your current settings by sending

>set show


>to get more help sent
>set help

>in the subject.


>But NOT(!) sent to the list use  "vdr-request" at linuxtv.org


Sorry that does not work!

You MUST go to the Webpage!
http://www.linuxtv.org/cgi-bin/mailman/options/vdr

If you have no web access, you will have to 
pay for every notification SMS until you find a PC
where you can read your mails and access the mail...


I got all my commands back with a 4KB "Help" text...

and the line 

- Results:
    Not authenticated

NO hint in the body which command to which list failed...
NO hint how i should have authenticate (i'm using the right address)
  
Luca Olivetti Feb. 13, 2005, 8:19 p.m. UTC | #7
Rainer Zocholl wrote:

> Now we get all those nice "out of office" notices 

Considering the company they come from (never saw something from them 
that worked as advertised) and the mail server they use (from a 
similarly clueless but less powerful company), that fact doesn't 
surprise me.

Bye
  
Rainer Zocholl Feb. 13, 2005, 9:01 p.m. UTC | #8
luca@ventoso.org(Luca Olivetti)  13.02.05 21:19

Once upon a time "Luca Olivetti " shaped the electrons to say...

>Rainer Zocholl wrote:

>> Now we get all those nice "out of office" notices

>Considering the company they come from (never saw something from them
>that worked as advertised) and the mail server they use (from a
>similarly clueless but less powerful company), that fact doesn't
>surprise me.

But they have learned:
Sometime ago those "Outofoffice" mails a list happend for
every mail of a "new" poster when not for every mailing.

Currently i get bounces^W NDR from "ralf@beensen.de"
for every email to the list...



Rainer
  

Patch

--- device.c.orig	2005-02-13 17:38:45.009642660 +0100
+++ device.c	2005-02-13 18:07:01.531071958 +0100
@@ -818,7 +818,7 @@ 
   if (CanReplay()) {
      if (player)
         Detach(player);
-     ClrAvailableTracks();
+     if (!Player->transferMode) ClrAvailableTracks();
      pesAssembler->Reset();
      player = Player;
      SetPlayMode(player->playMode);
--- player.c.orig	2005-02-13 18:07:53.253212138 +0100
+++ player.c	2005-02-13 18:08:18.282263592 +0100
@@ -16,6 +16,7 @@ 
 {
   device = NULL;
   playMode = PlayMode;
+  transferMode = false;
 }
 
 cPlayer::~cPlayer()
--- player.h.orig	2005-02-13 18:04:24.220312321 +0100
+++ player.h	2005-02-13 18:10:22.437470023 +0100
@@ -18,6 +18,7 @@ 
 private:
   cDevice *device;
   ePlayMode playMode;
+  bool transferMode;
 protected:
   void DeviceClrAvailableTracks(bool DescriptionsOnly = false) { if (device) device->ClrAvailableTracks(DescriptionsOnly); }
   bool DeviceSetAvailableTrack(eTrackType Type, int Index, uint16_t Id, const char *Language = NULL, const char *Description = NULL) { return device ? device->SetAvailableTrack(Type, Index, Id, Language, Description) : false; }
@@ -43,6 +44,7 @@ 
   cPlayer(ePlayMode PlayMode = pmAudioVideo);
   virtual ~cPlayer();
   bool IsAttached(void) { return device != NULL; }
+  void SetTransferMode(void) { transferMode = true; }
   virtual bool GetIndex(int &Current, int &Total, bool SnapToIFrame = false) { return false; }
        // Returns the current and total frame index, optionally snapped to the
        // nearest I-frame.
--- transfer.c.orig	2005-02-13 18:08:35.818160645 +0100
+++ transfer.c	2005-02-13 18:10:39.784151559 +0100
@@ -22,6 +22,7 @@ 
   remux = new cRemux(VPid, APids, Setup.UseDolbyDigital ? DPids : NULL, SPids);
   needsBufferReserve = Setup.UseDolbyDigital && VPid != 0 && DPids && DPids[0] != 0;
   active = false;
+  SetTransferMode();
 }
 
 cTransfer::~cTransfer()