[FFmpeg-devel] [RFC] allow mpegts demuxer to reload streams if service disappears

elupus elupus
Sun Jul 15 04:19:51 CEST 2007


I ran into and issue with current mpegts demuxer when streaming from a tv 
streaming server. when the server changes channel, the mpegts stream isn't 
torn down, but the data in it is just replaced, this messes up lavf as it 
now never finds any stream data on the tuned service.

This patch attemps to handle that by checking each PAT table if current 
service isn't available anymore. If it has been removed the idea is to 
remove all added avformat streams, and re-add based on the PMT for the first 
available service (this part isn't done yet).  I hope there isn't any huge 
problem with removing streams and readding new ones.

In it's current form it's untested, so it's more a check if something like 
this is of interest and if there is a better way to handle this.

It's an RFC so no need to comment on minor cosmetic changes, (large glaring 
ones you are ofcourse welcome to yell about)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: mpegts_follow.patch
Type: application/octet-stream
Size: 4154 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070715/6745f928/attachment.obj>

More information about the ffmpeg-devel mailing list