[PD] gem segfault when opening video

Charles Goyard cg at fsck.fr
Tue Feb 19 19:20:04 CET 2013


Charles Goyard wrote:
> With gdb I could see that the crash occurs inside
> filmGMERLIN::getFrame(void), on this line :
> 
>  bgav_read_video(m_file, m_gframe, m_stream);
> 
> m_stream is a null pointer there. I changed :
> 
>   bgav_set_video_stream(m_file, m_stream, BGAV_STREAM_DECODE);
>   if(!bgav_start(m_file)) {
>     close();
>     return false;
>   }
> 
> to: 
> 
>   bgav_set_video_stream(m_file, m_stream, BGAV_STREAM_DECODE);
>   if(!bgav_start(m_file) || !m_stream) {
>     close();
>     return false;
>   }
> 
> and now at least it does not segfaults. Maybe there's something nicer to
> do (printing an error message on the console ?), but it looks like a
> good start.

To be more complete: Gem seems to fall back to quicktime4linux after
failing in gmerlin and the film plays OK.




More information about the Pd-list mailing list