Reset in_first_get flag when done reading, and on opening a file.

Original commit message from CVS:
Reset in_first_get flag when done reading, and on opening a file.
This commit is contained in:
Colin Walters 2003-04-20 18:44:34 +00:00
parent f928b71543
commit 700a618147

View file

@ -957,6 +957,7 @@ static GstBuffer *gst_gnomevfssrc_get(GstPad *pad)
} while (src->in_first_get
&& GST_BUFFER_OFFSET (buf) < 8000 &&
src->icy_metaint - src->icy_count >= 8000);
src->in_first_get = FALSE;
} else {
/* allocate the space for the buffer data */
GST_BUFFER_DATA(buf) = g_malloc(src->bytes_per_read);
@ -1066,6 +1067,8 @@ static gboolean gst_gnomevfssrc_open_file(GstGnomeVFSSrc *src)
GST_DEBUG(0, "open result: %s", gnome_vfs_result_to_string (result));
src->in_first_get = TRUE;
GST_FLAG_SET(src, GST_GNOMEVFSSRC_OPEN);
return TRUE;