multipartdemux: guard against having no MIME type
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Wed, 11 Jun 2014 16:43:42 +0000 (17:43 +0100)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Wed, 11 Jun 2014 16:44:56 +0000 (17:44 +0100)
commit7e278e6b22fe2eea8b620996d6f3c7bbbb30c119
treece9afd7e4432c3fbbbf511ef63f7c42bb731fe77
parent9966fdfa756ff2ef5c5dcf541cb9b9dfe3b3d878
multipartdemux: guard against having no MIME type

The code would previously crash trying to insert a NULL string
into a hash table.
It does seem a little broken that indexing is done by MIME type
and not by index though, unless the spec says there cannot be
two parts with the same MIME type.

https://bugzilla.gnome.org/show_bug.cgi?id=659573
gst/multipart/multipartdemux.c