- Timestamp:
- 12/02/09 19:58:45 (3 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp
r10809 r10851 214 214 } 215 215 216 void FFmpegDecoder::resume()217 {218 m_pending_packet.clear();219 220 flushAudioQueue();221 flushVideoQueue();222 m_state = NORMAL;223 }224 225 216 void FFmpegDecoder::findAudioStream() 226 217 { … … 295 286 // If we reach the end of the stream, change the decoder state 296 287 if (loop()) 288 { 289 m_clocks.reset(m_start); 297 290 rewindButDontFlushQueues(); 291 } 298 292 else 299 293 m_state = END_OF_STREAM; … … 394 388 const int64_t seek_target = av_rescale_q(pos, AvTimeBaseQ, m_video_stream->time_base); 395 389 390 m_clocks.setSeekTime(time); 391 396 392 if (av_seek_frame(m_format_context.get(), m_video_index, seek_target, 0/*AVSEEK_FLAG_BYTE |*/ /*AVSEEK_FLAG_BACKWARD*/) < 0) 397 393 throw std::runtime_error("av_seek_frame failed()");
