# HG changeset patch # User rosfran # Date 1179524749 -3600 # Node ID b27d653ff6f1c3a7b5ddbdcd66f56790f34a6942 # Parent 14680616e7f8bde71b34055ff692f5aead513996 [svn r700] Reduced the quantity of max retries number on file_read. diff -r 14680616e7f8 -r b27d653ff6f1 gmyth/src/gmyth_file_transfer.c --- a/gmyth/src/gmyth_file_transfer.c Fri May 18 21:28:42 2007 +0100 +++ b/gmyth/src/gmyth_file_transfer.c Fri May 18 22:45:49 2007 +0100 @@ -659,7 +659,7 @@ * the remote file will be stored. * @param size The block size, in bytes, to be requested from a remote file. * @param read_unlimited Tells the backend to read indefinitely (LiveTV), or only - * gets the actual size + * gets the actual size * * @return The actual block size (in bytes) returned by REQUEST_BLOCK message, * or the error code. @@ -730,8 +730,7 @@ gmyth_string_list_append_char_array (strlist, "REQUEST_BLOCK"); gmyth_string_list_append_int (strlist, size - total_read); - /* 200??? Is this a TV or a HQ data traffic? */ - guint iter_count = 4; + guint iter_count = 1; do { @@ -834,12 +833,14 @@ (transfer))) != 0) + /* releasing context got at this function starting... */ _control_release_context (transfer); ret = gmyth_file_transfer_open (transfer, g_strrstr (prog_info->pathname-> str, "/")); _control_acquire_context (transfer, TRUE); + /* acquiring context released at this function stopping... */ if (prog_info != NULL) g_object_unref (prog_info);