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:
parent
f928b71543
commit
700a618147
@ -957,6 +957,7 @@ static GstBuffer *gst_gnomevfssrc_get(GstPad *pad)
|
|||||||
} while (src->in_first_get
|
} while (src->in_first_get
|
||||||
&& GST_BUFFER_OFFSET (buf) < 8000 &&
|
&& GST_BUFFER_OFFSET (buf) < 8000 &&
|
||||||
src->icy_metaint - src->icy_count >= 8000);
|
src->icy_metaint - src->icy_count >= 8000);
|
||||||
|
src->in_first_get = FALSE;
|
||||||
} else {
|
} else {
|
||||||
/* allocate the space for the buffer data */
|
/* allocate the space for the buffer data */
|
||||||
GST_BUFFER_DATA(buf) = g_malloc(src->bytes_per_read);
|
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));
|
GST_DEBUG(0, "open result: %s", gnome_vfs_result_to_string (result));
|
||||||
|
|
||||||
|
src->in_first_get = TRUE;
|
||||||
|
|
||||||
GST_FLAG_SET(src, GST_GNOMEVFSSRC_OPEN);
|
GST_FLAG_SET(src, GST_GNOMEVFSSRC_OPEN);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user