mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
ext/soup/gstsouphttpsrc.c: Correctly set duration on the GstBaseSrc segment when we know it to fix failing the durati...
Original commit message from CVS: Patch by: Wouter Cloetens <wouter at mind dot be> * ext/soup/gstsouphttpsrc.c: (soup_got_headers): Correctly set duration on the GstBaseSrc segment when we know it to fix failing the duration query.
This commit is contained in:
parent
c8d8a7e613
commit
505878c022
2 changed files with 5 additions and 1 deletions
2
common
2
common
|
@ -1 +1 @@
|
|||
Subproject commit 9aa2dcf8d6855932e9e91006d6be96f55fd9f1a3
|
||||
Subproject commit b6bd1a35b641237d016496039e474dee4230de76
|
|
@ -558,6 +558,7 @@ soup_got_headers (SoupMessage * msg, GstSouphttpSrc * src)
|
|||
{
|
||||
const char *value;
|
||||
GstTagList *tag_list;
|
||||
GstBaseSrc *basesrc;
|
||||
|
||||
GST_DEBUG_OBJECT (src, "got headers");
|
||||
|
||||
|
@ -568,6 +569,9 @@ soup_got_headers (SoupMessage * msg, GstSouphttpSrc * src)
|
|||
src->have_size = TRUE;
|
||||
GST_DEBUG_OBJECT (src, "size = %llu", src->content_size);
|
||||
|
||||
basesrc = GST_BASE_SRC_CAST (src);
|
||||
gst_segment_set_duration (&basesrc->segment, GST_FORMAT_BYTES,
|
||||
src->content_size);
|
||||
gst_element_post_message (GST_ELEMENT (src),
|
||||
gst_message_new_duration (GST_OBJECT (src), GST_FORMAT_BYTES,
|
||||
src->content_size));
|
||||
|
|
Loading…
Reference in a new issue