summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/demuxers/demux_realaudio.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/demuxers/demux_realaudio.c b/src/demuxers/demux_realaudio.c
index 0b692f185..bf8de0dad 100644
--- a/src/demuxers/demux_realaudio.c
+++ b/src/demuxers/demux_realaudio.c
@@ -22,7 +22,7 @@
* RealAudio File Demuxer by Mike Melanson (melanson@pcisys.net)
* improved by James Stembridge (jstembridge@users.sourceforge.net)
*
- * $Id: demux_realaudio.c,v 1.33 2007/01/19 00:26:40 dgp85 Exp $
+ * $Id: demux_realaudio.c,v 1.34 2007/03/29 17:00:32 dgp85 Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -57,16 +57,15 @@ typedef struct {
unsigned int fourcc;
unsigned int audio_type;
+ unsigned short block_align;
+
+ uint8_t seek_flag:1; /* this is set when a seek just occurred */
+
off_t data_start;
off_t data_size;
- unsigned short block_align;
- unsigned int bytes_per_sec;
-
unsigned char *header;
unsigned int header_size;
-
- int seek_flag; /* this is set when a seek just occurred */
} demux_ra_t;
typedef struct {
@@ -316,10 +315,7 @@ static int demux_ra_get_status (demux_plugin_t *this_gen) {
static int demux_ra_get_stream_length (demux_plugin_t *this_gen) {
demux_ra_t *this = (demux_ra_t *) this_gen;
- if(this->bytes_per_sec)
- return (int)((int64_t) this->data_size * 1000 / this->bytes_per_sec);
- else
- return 0;
+ return 0;
}
static uint32_t demux_ra_get_capabilities(demux_plugin_t *this_gen) {