diff options
author | Wouter Cloetens <wouter@mind.be> | 2007-12-11 16:39:39 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2007-12-11 16:39:39 +0000 |
commit | a1ced2746d972aa541d906238102987f7d6a7798 (patch) | |
tree | 2e627a7ff97d825c08ec2773798bd9a2a4696f8c /ext/soup/gstsouphttpsrc.h | |
parent | 370882482aeacefa647849f67f50dee6b05d6801 (diff) | |
download | gst-plugins-bad-a1ced2746d972aa541d906238102987f7d6a7798.tar.gz gst-plugins-bad-a1ced2746d972aa541d906238102987f7d6a7798.tar.bz2 gst-plugins-bad-a1ced2746d972aa541d906238102987f7d6a7798.zip |
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.h | 11 |
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 { |