multipartdemux: improve header mime-type parsing
authorAnders Skargren <anders.skargren at axis.com>
Tue, 16 Feb 2010 20:05:24 +0000 (21:05 +0100)
committerWim Taymans <wim@metal.(none)>
Tue, 16 Feb 2010 20:05:24 +0000 (21:05 +0100)
commit6a877b2e6daae21772768d1973fa801143d312e6
tree61bdf5eb15ca03eeae21d5fbf496f08e6206fe40
parenta0b651bf5ba51eb385e43d61dd74cb786057d4fd
multipartdemux: improve header mime-type parsing

Make the handing of the mime type within the "boundary" a bit less naive.
The standard for MIME allows parameters to follow the "type" / "subtype"
clause separated from the mime type by ';'.

Modifies the multipartdemuxer's header parsing so it doesnt assume
the whole line after "content-type:" is the mime type and thus makes it a bit
more resilient to finding absurd mime types in the case where parameters are
added.

Fixes #604711
gst/multipart/multipartdemux.c