Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
2010-06-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
Browse files Browse the repository at this point in the history
	* pipeline.cpp: ProgressiveSource::DataWrite: don't report download progress
	if size is unknown.

svn path=/branches/moon-2-99-0-7/moon/; revision=159099
  • Loading branch information
Chris Toshok committed Jun 17, 2010
1 parent fa5e926 commit 3ef26d9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/ChangeLog
@@ -1,3 +1,8 @@
2010-06-15 Rolf Bjarne Kvinge <RKvinge@novell.com>

* pipeline.cpp: ProgressiveSource::DataWrite: don't report download progress
if size is unknown.

2010-06-15 Rolf Bjarne Kvinge <RKvinge@novell.com>

* pipeline.cpp: ProgressiveSource::DataWrite: Don't seek anywhere if offset is
Expand Down
3 changes: 2 additions & 1 deletion src/pipeline.cpp
Expand Up @@ -1982,7 +1982,8 @@ ProgressiveSource::DataWrite (void *buf, gint32 offset, gint32 n)

cleanup:
if (media) {
media->ReportDownloadProgress ((double) (offset + n) / (double) size);
if (size != -1 && offset != -1)
media->ReportDownloadProgress ((double) (offset + n) / (double) size);
media->unref ();
}
}
Expand Down

0 comments on commit 3ef26d9

Please sign in to comment.