Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix for Issue #39 #40

Merged
merged 1 commit into from

2 participants

M. David Peterson Stefan de Konink
M. David Peterson
Collaborator

Updates handler_streaming.c to calculate the file_size rather instead of calling the deprecated 'file_size' member of 'AVFormatContext'

Stefan de Konink skinkie merged commit d363f35 into from
Daniel Niccoli Borkason referenced this pull request
Closed

Internal error_redir #188

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 26, 2012
  1. M. David Peterson

    fix for 'handler_streaming.c:383:23: error: 'AVFormatContext' has no …

    mdavid authored
    …member named
    
    'file_size'
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  cherokee/handler_streaming.c
2  cherokee/handler_streaming.c
View
@@ -380,7 +380,7 @@ set_auto_rate (cherokee_handler_streaming_t *hdl)
if (likely (secs > 0)) {
long tmp;
- tmp = (hdl->avformat->file_size / secs);
+ tmp = (avio_size(hdl->avformat) / secs);
if (tmp > rate) {
rate = tmp;
TRACE(ENTRIES, "New rate: %d bytes/s\n", rate);
Something went wrong with that request. Please try again.