I have another situation here with metadata. It is not behaving as I believe, 
from reading the documentation, it should.

    pair = insert_metadata(drop_metadata(master_source))
    master_metadata_f = fst(pair)
    master_meta = snd(pair)

...

    s= switch(id="foo",
            track_sensitive=false,
            [({!baz}, master_meta), ({true}, s)]


The FIRST time that foo switches to master_meta, it correctly updates the 
metadata on s to be what the insert_metadata sets it to.

When the stream fails, as it inevitably does, due to buffer underruns, the foo 
switch switches to the original s, and updates the metadata.

BUT! When the stream at master_meta comes back, due to the buffer catching up, 
the foo switch correctly switches back to it (can see it in the logs), but it 
does NOT update the metadata.

The docs for switch() say:
  replay_metadata (bool – defaults to true): Replay the last metadata of a 
child when switching
                                             to it in the middle of a track.

I'd read that to mean that, by default, it should be doing the right thing. But 
it isn't.
                                                                                
         
Why isn't it doing that then? My (naive) understanding is that master_meta 
still contains the last metadata it was set to. I'm logging the activity of 
master_metadata_f, so I know with certainty that it's set correctly.

-ken

------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to