avenc_mpeg2video: Null pointer access when pipeline is seeked on
As you might remember, Rygel supports live transcoding. In those transcoded streams, we support time-based seeking from clients. This is implemented by calling something like
if (!gst_element_seek (data->pipeline,
1.0f,
GST_FORMAT_TIME,
GST_SEEK_FLAG_FLUSH | GST_SEEK_FLAG_ACCURATE,
GST_SEEK_TYPE_SET,
0,
GST_SEEK_TYPE_SET,
1000000001)) {
in the state change from ready -> paused on the pipeline.
This crashes when the encode process reaches the end, see gdb.txt, the crashing thread is thread 6
The attached encode.tgz encode.tgz contains example code that resembles what rygel does internally