hsldemux: Handle change of media types
authorEdward Hervey <edward.hervey@collabora.co.uk>
Tue, 26 Jul 2011 15:02:05 +0000 (17:02 +0200)
committerEdward Hervey <edward.hervey@collabora.co.uk>
Wed, 27 Jul 2011 14:56:37 +0000 (16:56 +0200)
commit976f4b0bbf8efcd0054fc4c0f9ca74029e85dc69
tree36d866c28c29f1551e0797fdc90deb83ae631892
parenta49cfd133016e4f98f67dc8bbd719b947c927136
hsldemux: Handle change of media types

When switching bitrates, we might end up switching to a different
media-type (like from aac to/from mpeg-ts).

For this switch to behave properly in decodebin2, this patch adds:
* dynamic source pads (which will be added/removed whenever a stream
  media type changes
* re-checking the fragment media type whenever we switch to a different
  playlist
gst/hls/gsthlsdemux.c
gst/hls/gsthlsdemux.h