Skip to content
This repository
Browse code

dvdplayer: fixed crash introduced with change in handling of abort

  • Loading branch information...
commit 66be6ac1773104f3ee4feccf11a5a9b2fba9ae93 1 parent 7186213
Joakim Plate authored April 07, 2013
2  xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxFFmpeg.cpp
@@ -306,7 +306,7 @@ bool CDVDDemuxFFmpeg::Open(CDVDInputStream* pInput)
306 306
   else
307 307
   {
308 308
     unsigned char* buffer = (unsigned char*)m_dllAvUtil.av_malloc(FFMPEG_FILE_BUFFER_SIZE);
309  
-    m_ioContext = m_dllAvFormat.avio_alloc_context(buffer, FFMPEG_FILE_BUFFER_SIZE, 0, m_pInput, dvd_file_read, NULL, dvd_file_seek);
  309
+    m_ioContext = m_dllAvFormat.avio_alloc_context(buffer, FFMPEG_FILE_BUFFER_SIZE, 0, this, dvd_file_read, NULL, dvd_file_seek);
310 310
     m_ioContext->max_packet_size = m_pInput->GetBlockSize();
311 311
     if(m_ioContext->max_packet_size)
312 312
       m_ioContext->max_packet_size *= FFMPEG_FILE_BUFFER_SIZE / m_ioContext->max_packet_size;

0 notes on commit 66be6ac

Please sign in to comment.
Something went wrong with that request. Please try again.