mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
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.
This commit is contained in:
parent
3d78da5dc2
commit
27e205b313
2 changed files with 14 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
|||
2003-01-25 Colin Walters <walters@gnu.org>
|
||||
|
||||
* ext/gnomevfs/gstgnomevfssrc.c (gst_gnomevfssrc_open_file): Don't
|
||||
make a size request when in iradio mode.
|
||||
|
||||
2002-11-25 Colin Walters <walters@debian.org>
|
||||
|
||||
* ext/gnomevfs/gstgnomevfssrc.c (gst_gnomevfssrc_received_headers_callback):
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* 2000 Wim Taymans <wtay@chello.be>
|
||||
* 2001 Bastien Nocera <hadess@hadess.net>
|
||||
* 2002 Kristian Rietveld <kris@gtk.org>
|
||||
* 2002 Colin Walters <walters@gnu.org>
|
||||
* 2002,2003 Colin Walters <walters@gnu.org>
|
||||
*
|
||||
* 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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue