|
|
|
@ -276,7 +276,7 @@ bool videoAVLIBSource::_open(char *URI, bool ShowDeviceMenu, float framerate, in |
|
|
|
av_dict_set(&options, "framerate", tChar, 0); |
|
|
|
//av_dict_set(&options, "frame_rate", tChar, 0);
|
|
|
|
}; |
|
|
|
av_dict_set(&options, "pixel_format", "mjpeg", 0); |
|
|
|
//av_dict_set(&options, "pixel_format", "mjpeg", 0);
|
|
|
|
//av_dict_set(&options, "timeout", "8000", 0);
|
|
|
|
int RetVal = 0; |
|
|
|
if( ( RetVal = avformat_open_input(&m_pVideoState->m_pFormatCtx, URI, NULL, &options) ) != 0 ){ |
|
|
|
@ -500,8 +500,8 @@ void videoAVLIBSource::m_fThreadProc( void ){ |
|
|
|
#endif
|
|
|
|
if( RetVal < 0 ){ |
|
|
|
LOG_ERROR( "MediaSource::DecoderProc - Decode Error." ); |
|
|
|
//m_bThreadStatus = TH_ENDED;
|
|
|
|
//m_pVideoState->m_bStatus = MS_STOPED;
|
|
|
|
m_bThreadStatus = TH_ENDED; |
|
|
|
m_pVideoState->m_bStatus = MS_STOPED; |
|
|
|
continue; |
|
|
|
}; |
|
|
|
if( m_bThreadStatus == TH_ENDED ){ |
|
|
|
|