[Approved] "no audio/video detected" on DVB channel change (1 Viewer)

mvedrina

Portal Member
March 14, 2007
19
4
Home Country
Croatia Croatia
This fixes incorrect behavior of WaitForPMT function in TVDVBChannel.cs which waits correctly for OnPMTReceived() event only for the first time.

This bug freezes playback if stream type changes when changing dvb channels.

There is also a small fix for log message.
 

Attachments

  • DVB - WaitForPMT fix.patch
    30.7 KB

morpheus_xx

Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    thank you for your patch. I commited a small modified version to svn: 23857 :D

    It's now sure that the event is reset before start to wait again.

    but can you please describe the exact case when it could be set before waiting again? I tested the loop code and pat lookup quite extensive, and also the dynamic pmt switching, but never seen any issues with previous version?
     

    mvedrina

    Portal Member
    March 14, 2007
    19
    4
    Home Country
    Croatia Croatia
    I attached log where you can see that when timeshifting is started and HTV2 Zg channel is tuned, thread waits for OnPMTReceived() and thean reads pmt data. After HTV1 is tuned, thread doesn't wait for mpt data but uses data from HTV2 Zg. This is not a problem because they are both MPEG-2 streams.
    But when I change program to SLO1, same pmt data from HTV2 Zg is used. Since SLO1 is H.264 stream, the playback is stopped with error message.
     

    Attachments

    • tv.rar
      30.6 KB

    Users who are viewing this thread

    Top Bottom