mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 20:42:30 +00:00
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
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue