Skip to content

Commit

Permalink
MHEG: Produce dummy frames even if there is no MHEG support.
Browse files Browse the repository at this point in the history
Should fix a few issues for users without MHEG support compiled who tune
to an off air channel (DVB-S/T).

Refs #9824
  • Loading branch information
Mark Kendall committed Oct 17, 2011
1 parent 4fe1522 commit aa44cb6
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions mythtv/libs/libmythtv/avformatdecoder.cpp
Expand Up @@ -3438,24 +3438,24 @@ bool AvFormatDecoder::ProcessDataPacket(AVStream *curstream, AVPacket *pkt,

switch (codec_id)
{
case CODEC_ID_MPEG2VBI:
ProcessVBIDataPacket(curstream, pkt);
break;
case CODEC_ID_DVB_VBI:
ProcessDVBDataPacket(curstream, pkt);
break;
case CODEC_ID_MPEG2VBI:
ProcessVBIDataPacket(curstream, pkt);
break;
case CODEC_ID_DVB_VBI:
ProcessDVBDataPacket(curstream, pkt);
break;
case CODEC_ID_DSMCC_B:
{
ProcessDSMCCPacket(curstream, pkt);
GenerateDummyVideoFrames();
// Have to return regularly to ensure that the OSD is updated.
// This applies both to MHEG and also channel browsing.
#ifdef USING_MHEG
case CODEC_ID_DSMCC_B:
{
ProcessDSMCCPacket(curstream, pkt);
GenerateDummyVideoFrames();
// Have to return regularly to ensure that the OSD is updated.
// This applies both to MHEG and also channel browsing.
if (!(decodetype & kDecodeVideo))
allowedquit |= (itv && itv->ImageHasChanged());
break;
}
if (!(decodetype & kDecodeVideo))
allowedquit |= (itv && itv->ImageHasChanged());
#endif // USING_MHEG:
break;
}
}
return true;
}
Expand Down

0 comments on commit aa44cb6

Please sign in to comment.