[mythtv-commits] Ticket #7951: multiple components segfaulting in av_close_input_stream

MythTV mythtv at cvs.mythtv.org
Mon Jan 25 16:34:17 UTC 2010


#7951: multiple components segfaulting in av_close_input_stream
------------------------------------------------+---------------------------
 Reporter:  Andrew Dranse <ajdranse@…>          |       Owner:  ijr           
     Type:  defect                              |      Status:  infoneeded_new
 Priority:  critical                            |   Milestone:  0.23          
Component:  MythTV - General                    |     Version:  0.22-fixes    
 Severity:  medium                              |     Mlocked:  0             
------------------------------------------------+---------------------------

Comment(by danielk):

 There is an insufficiently documented ugly hack on line 2037 of
 avformatdecoder.cpp
 {{{
 //av_close_input_file(ic); // causes segfault
 }}}
 which may be related. As a general rule all ffmpeg file, stream & codec
 object creation and teardown routines need to be protected by a global
 lock as they are neither thread-safe nor re-entrant code. The lack of
 avcodeclock locking in some such locations is probably the cause of the
 instability.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/7951#comment:2>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list