view my_profile.c @ 9787:c3b63fb0e8db

Added a test for "s->fd == NULL" to the start of "stream_fill_buffer()". ("fd" is NULL if the session is defined by a SDP file, for example.) It turns out that this test is necessary only for Solaris, not Linux, because in Linux, "s->eof" got set after the prior (failing) call to "lseek()" in "stream_seek_long()". In Solaris, however, "lseek(NULL, ...)" returns 0 (go figure!) rather than -1, so "s->eof" doesn't get set in "stream_seek_long()".
author rsf
date Wed, 02 Apr 2003 01:46:47 +0000
parents b7d3b450f8fd
children
line wrap: on
line source

/*
 *  my_profile.c
 *
 *	Copyright (C) Nick Kurshev <nickols_k@mail.ru> - Oct 2001
 *
 *  You can redistribute this file under terms and conditions
 *  of GNU General Public licence v2.
 */
 
#include "my_profile.h"

volatile unsigned long long int my_profile_start,my_profile_end,my_profile_total;