summaryrefslogtreecommitdiffstats
path: root/ext/soup/gstsouphttpsrc.h
diff options
context:
space:
mode:
authorWouter Cloetens <wouter@mind.be>2007-12-11 16:39:39 +0000
committerWim Taymans <wim.taymans@gmail.com>2007-12-11 16:39:39 +0000
commitd25053bfa975e1852286927312e685de72d4c63d (patch)
tree18121b35ab82f3fe09d71191a21a618ca835f914 /ext/soup/gstsouphttpsrc.h
parent2ad5efaf282b0a3f70000be5205a67613655a1ca (diff)
ext/soup/gstsouphttpsrc.*: Do not try to unpause I/O in the "queued" state.
Original commit message from CVS: Patch by: Wouter Cloetens <wouter at mind dot be> * ext/soup/gstsouphttpsrc.c: (_do_init), (gst_souphttp_src_class_init), (gst_souphttp_src_init), (gst_souphttp_src_dispose), (gst_souphttp_src_set_property), (gst_souphttp_src_get_property), (unicodify), (gst_souphttp_src_unicodify), (gst_souphttp_src_create), (gst_souphttp_src_start), (gst_souphttp_src_stop), (gst_souphttp_src_unlock), (gst_souphttp_src_unlock_stop), (gst_souphttp_src_get_size), (gst_souphttp_src_is_seekable), (soup_got_headers), (soup_got_body), (soup_finished), (soup_got_chunk), (soup_response), (soup_parse_status), (gst_souphttp_src_uri_get_type), (gst_souphttp_src_uri_get_protocols), (gst_souphttp_src_uri_get_uri), (gst_souphttp_src_uri_set_uri), (gst_souphttp_src_uri_handler_init): * ext/soup/gstsouphttpsrc.h: Do not try to unpause I/O in the "queued" state. Reorganise a bunch of things and cleanups. Uses G_GUINT64_FORMAT instead of hard-coding %llu. See #502335.
Diffstat (limited to 'ext/soup/gstsouphttpsrc.h')
-rw-r--r--ext/soup/gstsouphttpsrc.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/ext/soup/gstsouphttpsrc.h b/ext/soup/gstsouphttpsrc.h
index 5dca307c..6ed913e3 100644
--- a/ext/soup/gstsouphttpsrc.h
+++ b/ext/soup/gstsouphttpsrc.h
@@ -41,6 +41,7 @@ struct _GstSouphttpSrc {
GstPushSrc element;
gchar * location; /* Full URI. */
+ gchar * user_agent; /* User-Agent HTTP header. */
GMainContext * context; /* I/O context. */
GMainLoop * loop; /* Event loop. */
SoupSession * session; /* Async context. */
@@ -48,8 +49,18 @@ struct _GstSouphttpSrc {
GstFlowReturn ret; /* Return code from callback. */
GstBuffer ** outbuf; /* Return buffer allocated by callback. */
gboolean interrupted; /* Signal unlock(). */
+
gboolean have_size; /* Received and parsed Content-Length header. */
guint64 content_size; /* Value of Content-Length header. */
+ guint64 read_position; /* Current position. */
+
+ /* Shoutcast/icecast metadata extraction handling. */
+ gboolean iradio_mode;
+ GstCaps * icy_caps;
+ gchar * iradio_name;
+ gchar * iradio_genre;
+ gchar * iradio_url;
+ gchar * iradio_title;
};
struct _GstSouphttpSrcClass {