Keep a ref on pad to prevent it being unreffed while the mssdemux streams are still using it. Also reset the element when going to ready instead of when going to null.
Keep a ref on pad to prevent it being unreffed while the mssdemux streams are still using it. Also reset the element when going to ready instead of when going to null.