Fix an endless loop at EOS.. this is a hack...

Original commit message from CVS:
Fix an endless loop at EOS.. this is a hack...
This commit is contained in:
Wim Taymans 2001-06-30 00:35:55 +00:00
parent 1c3b5dc57b
commit 13e5c7ba91
2 changed files with 6 additions and 2 deletions

View file

@ -238,7 +238,9 @@ gst_disksrc_get (GstPad *pad)
if (src->curoffset >= src->size) {
GST_DEBUG (0,"map offset %ld >= size %ld --> eos\n", src->curoffset, src->size);
gst_pad_set_eos (pad);
return NULL;
buf = gst_buffer_new();
GST_BUFFER_FLAG_SET (buf, GST_BUFFER_EOS);
return buf;
}
/* create the buffer */

View file

@ -238,7 +238,9 @@ gst_disksrc_get (GstPad *pad)
if (src->curoffset >= src->size) {
GST_DEBUG (0,"map offset %ld >= size %ld --> eos\n", src->curoffset, src->size);
gst_pad_set_eos (pad);
return NULL;
buf = gst_buffer_new();
GST_BUFFER_FLAG_SET (buf, GST_BUFFER_EOS);
return buf;
}
/* create the buffer */