From 27e205b313092f754b6a146d7a85e2eb91815227 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Sat, 25 Jan 2003 23:20:36 +0000 Subject: [PATCH] Don't make a size request when in iradio mode. Original commit message from CVS: (gst_gnomevfssrc_open_file): Don't make a size request when in iradio mode. --- ChangeLog | 5 +++++ ext/gnomevfs/gstgnomevfssrc.c | 13 +++++++++---- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7b10c73..8a5789c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-01-25 Colin Walters + + * ext/gnomevfs/gstgnomevfssrc.c (gst_gnomevfssrc_open_file): Don't + make a size request when in iradio mode. + 2002-11-25 Colin Walters * ext/gnomevfs/gstgnomevfssrc.c (gst_gnomevfssrc_received_headers_callback): diff --git a/ext/gnomevfs/gstgnomevfssrc.c b/ext/gnomevfs/gstgnomevfssrc.c index 31c5e12..110be09 100644 --- a/ext/gnomevfs/gstgnomevfssrc.c +++ b/ext/gnomevfs/gstgnomevfssrc.c @@ -3,7 +3,7 @@ * 2000 Wim Taymans * 2001 Bastien Nocera * 2002 Kristian Rietveld - * 2002 Colin Walters + * 2002,2003 Colin Walters * * gnomevfssrc.c: * @@ -1047,7 +1047,10 @@ static gboolean gst_gnomevfssrc_open_file(GstGnomeVFSSrc *src) return FALSE; } - /* find the file length */ + /* find the file length (but skip it in iradio mode, + * since it will require a separate request, and we + * know the length is undefined anyways) */ + if (!src->iradio_mode) { GnomeVFSResult size_result; GnomeVFSFileInfo *info; @@ -1061,10 +1064,12 @@ static gboolean gst_gnomevfssrc_open_file(GstGnomeVFSSrc *src) else src->size = info->size; - GST_DEBUG(0, "size %lld", src->size); - gnome_vfs_file_info_unref(info); } + else + src->size = 0; + + GST_DEBUG(0, "size %lld", src->size); audiocast_do_notifications(src); -- 2.7.4