Permalink
Browse files

[rbp/omxplayer] Fix stall when resuming avi file without valid pts

Revert it for now until a better solution is found.
  • Loading branch information...
1 parent 024ef6b commit 8137a95bcbd1643e7edbc1751316dc355d42a6d1 @popcornmix popcornmix committed Jan 7, 2014
Showing with 4 additions and 1 deletion.
  1. +3 −0 xbmc/cores/omxplayer/OMXAudio.cpp
  2. +1 −1 xbmc/cores/omxplayer/OMXVideo.cpp
@@ -947,6 +947,9 @@ unsigned int COMXAudio::AddPackets(const void* data, unsigned int len, double dt
if(m_setStartTime)
{
omx_buffer->nFlags = OMX_BUFFERFLAG_STARTTIME;
+ if(pts == DVD_NOPTS_VALUE)
+ omx_buffer->nFlags |= OMX_BUFFERFLAG_TIME_UNKNOWN;
+
m_last_pts = pts;
CLog::Log(LOGDEBUG, "COMXAudio::Decode ADec : setStartTime %f\n", (float)val / DVD_TIME_BASE);
@@ -756,7 +756,7 @@ int COMXVideo::Decode(uint8_t *pData, int iSize, double pts)
CLog::Log(LOGDEBUG, "OMXVideo::Decode VDec : setStartTime %f\n", (pts == DVD_NOPTS_VALUE ? 0.0 : pts) / DVD_TIME_BASE);
m_setStartTime = false;
}
- else if(pts == DVD_NOPTS_VALUE)
+ if(pts == DVD_NOPTS_VALUE)
omx_buffer->nFlags |= OMX_BUFFERFLAG_TIME_UNKNOWN;
omx_buffer->nTimeStamp = ToOMXTime((uint64_t)(pts == DVD_NOPTS_VALUE) ? 0 : pts);

0 comments on commit 8137a95

Please sign in to comment.