shout2send: accept audio/webm, audio/ogg and video/ogg as well
Those are advertised in the template caps, but the setcaps handler didn't handle them. But then oggmux and oggparse at least for now still always output application/ogg anyway, so that wasn't a real problem.
This commit is contained in:
parent
e178cf60ae
commit
d7210befdc
@ -798,10 +798,10 @@ gst_shout2send_setcaps (GstBaseSink * basesink, GstCaps * caps)
|
||||
|
||||
if (!strcmp (mimetype, "audio/mpeg")) {
|
||||
shout2send->format = SHOUT_FORMAT_MP3;
|
||||
} else if (!strcmp (mimetype, "application/ogg")) {
|
||||
} else if (g_str_has_suffix (mimetype, "/ogg")) {
|
||||
shout2send->format = SHOUT_FORMAT_VORBIS;
|
||||
#ifdef SHOUT_FORMAT_WEBM
|
||||
} else if (!strcmp (mimetype, "video/webm")) {
|
||||
} else if (g_str_has_suffix (mimetype, "/webm")) {
|
||||
shout2send->format = SHOUT_FORMAT_WEBM;
|
||||
#endif
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user