GNOME Bugzilla – Bug 487892
[mpegtsparse] getting pat-info property before PAT is available crashes filter
Last modified: 2007-11-15 19:03:36 UTC
When asking for the pat-info property before the filter starts or before the PAT is available, the plugin crashes.
Created attachment 97417 [details] [review] Patch mpegtsparse.c to correctly initialize the pat-info property The patch ensures that the plugin does not crash when the property pat-info is queried before a PAT is available. It also ensures that the PAT info is cleared when the changing from PLAYING to READY.
Created attachment 97595 [details] [review] overrides the previously suggested patch The previous patch 97417 introduces an undesirable side effect that makes the PAT info obsolete even if it wasn't. The correct approach is to remove the stream completely when the filter is stopped.
Patch by: Wai-Ming Ho <webregbox at yahoo dot co dot uk> * gst/mpegtsparse/mpegtspacketizer.c: (foreach_stream_clear), (remove_all), (mpegts_packetizer_clear): Ensure that the plugin does not crash when the property pat-info is queried before a PAT is available. It also ensures that the PAT info is cleared when the changing from PLAYING to READY. Fixes #487892.