projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45c61db
)
downloadbuffer: fix uninitialized variable
author
Wim Taymans
<wtaymans@redhat.com>
Tue, 3 Jun 2014 20:19:33 +0000
(22:19 +0200)
committer
Wim Taymans
<wtaymans@redhat.com>
Tue, 3 Jun 2014 20:19:33 +0000
(22:19 +0200)
plugins/elements/gstdownloadbuffer.c
patch
|
blob
|
history
diff --git
a/plugins/elements/gstdownloadbuffer.c
b/plugins/elements/gstdownloadbuffer.c
index
58e0722
..
db3be22
100644
(file)
--- a/
plugins/elements/gstdownloadbuffer.c
+++ b/
plugins/elements/gstdownloadbuffer.c
@@
-1475,6
+1475,7
@@
gst_download_buffer_handle_src_query (GstPad * pad, GstObject * parent,
/* fill out the buffered ranges */
start = offset = 0;
stop = -1;
+ estimated_total = -1;
while (gst_sparse_file_get_range_after (dlbuf->file, offset,
&range_start, &range_stop)) {
gboolean current_range;
@@
-1492,8
+1493,6
@@
gst_download_buffer_handle_src_query (GstPad * pad, GstObject * parent,
/* calculate remaining and total download time */
if (duration >= range_stop && avg_in > 0.0)
estimated_total = ((duration - range_stop) * 1000) / avg_in;
- else
- estimated_total = -1;
} else
current_range = FALSE;