X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=ext%2Fsoup%2Fgstsouphttpsrc.h;h=74a34bb112ade5c45f30f7ebc31a40e5c240dca0;hb=71eab0c2482825df1aba6cc304cb83aaa232779e;hp=71725817e209646f30c162aa459e0697d66a9daa;hpb=fdac3a7a231f3848665636cf8122f96103b46e3b;p=platform%2Fupstream%2Fgst-plugins-good.git diff --git a/ext/soup/gstsouphttpsrc.h b/ext/soup/gstsouphttpsrc.h index 7172581..74a34bb 100644 --- a/ext/soup/gstsouphttpsrc.h +++ b/ext/soup/gstsouphttpsrc.h @@ -9,7 +9,7 @@ * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Library General Public License for more + * Library General Public License for more */ #ifndef __GST_SOUP_HTTP_SRC_H__ @@ -59,16 +59,11 @@ struct _GstSoupHTTPSrc { gchar *proxy_id; /* Authentication user id for proxy URI. */ gchar *proxy_pw; /* Authentication user password for proxy URI. */ gchar **cookies; /* HTTP request cookies. */ - GMainContext *context; /* I/O context. */ - GMainLoop *loop; /* Event loop. */ SoupSession *session; /* Async context. */ - GstSoupHTTPSrcSessionIOStatus session_io_status; - /* Async I/O status. */ + gboolean session_is_shared; + SoupSession *external_session; /* Shared via GstContext */ + gboolean forced_external_session; /* If session was explicitly set from application */ SoupMessage *msg; /* Request message. */ - GstFlowReturn ret; /* Return code from callback. */ - GstBuffer **outbuf; /* Return buffer allocated by callback. */ - gboolean interrupted; /* Signal unlock(). */ - gboolean retry; /* Should attempt to reconnect. */ gint retry_count; /* Number of retries since we received data */ gint max_retries; /* Maximum number of retries */ gchar *method; /* HTTP method */ @@ -94,6 +89,13 @@ struct _GstSoupHTTPSrc { GTlsDatabase *tls_database; GTlsInteraction *tls_interaction; + GCancellable *cancellable; + GInputStream *input_stream; + + gint reduce_blocksize_count; + gint increase_blocksize_count; + guint minimum_blocksize; + /* Shoutcast/icecast metadata extraction handling. */ gboolean iradio_mode; GstCaps *src_caps; @@ -110,9 +112,18 @@ struct _GstSoupHTTPSrc { guint timeout; GMutex mutex; - GCond request_finished_cond; + GCond have_headers_cond; GstEvent *http_headers_event; + + gint64 last_socket_read_time; + +#ifdef TIZEN_FEATURE_SOUP_MODIFICATION + gchar *dash_oldest_segment; + gchar *dash_newest_segment; + guint64 received_total; /* temp: for debugging */ + guint dlna_opt; /* DLNA server option */ +#endif }; struct _GstSoupHTTPSrcClass {