gst/playback/gstplaybasebin.c: Make http sources send special headers so that we receive icecast metadata if the http...

Original commit message from CVS:
* gst/playback/gstplaybasebin.c: (gen_source_element):
Make http sources send special headers so that we receive
icecast metadata if the http stream is an icecast stream
(otherwise the server will just ignore them). This also
means that from now on users will need the 'icydemux'
element from gst-plugins-good installed if they want to
listen to icecast radio streams. (#341432, #333657).
This commit is contained in:
Tim-Philipp Müller 2006-05-11 16:04:28 +00:00
parent 1ece1a9751
commit a2bf9eeca8
2 changed files with 18 additions and 0 deletions

View file

@ -1,3 +1,13 @@
2006-05-11 Tim-Philipp Müller <tim at centricular dot net>
* gst/playback/gstplaybasebin.c: (gen_source_element):
Make http sources send special headers so that we receive
icecast metadata if the http stream is an icecast stream
(otherwise the server will just ignore them). This also
means that from now on users will need the 'icydemux'
element from gst-plugins-good installed if they want to
listen to icecast radio streams. (#341432, #333657).
2006-05-11 Thomas Vander Stichele <thomas at apestaart dot org>
* gst/tcp/gstmultifdsink.c: (gst_multi_fd_sink_remove_client_link),

View file

@ -1103,6 +1103,14 @@ gen_source_element (GstPlayBaseBin * play_base_bin, GstElement ** subbin)
!strncmp (play_base_bin->uri, "rtp://", 6) ||
!strncmp (play_base_bin->uri, "rtsp://", 7);
/* make HTTP sources send extra headers so we get icecast
* metadata in case the stream is an icecast stream */
if (!strncmp (play_base_bin->uri, "http://", 7) &&
g_object_class_find_property (G_OBJECT_GET_CLASS (source),
"iradio-mode")) {
g_object_set (source, "iradio-mode", TRUE, NULL);
}
return source;
}