mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-04 07:26:33 +00:00
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:
parent
1c3b5dc57b
commit
13e5c7ba91
2 changed files with 6 additions and 2 deletions
|
@ -238,7 +238,9 @@ gst_disksrc_get (GstPad *pad)
|
||||||
if (src->curoffset >= src->size) {
|
if (src->curoffset >= src->size) {
|
||||||
GST_DEBUG (0,"map offset %ld >= size %ld --> eos\n", src->curoffset, src->size);
|
GST_DEBUG (0,"map offset %ld >= size %ld --> eos\n", src->curoffset, src->size);
|
||||||
gst_pad_set_eos (pad);
|
gst_pad_set_eos (pad);
|
||||||
return NULL;
|
buf = gst_buffer_new();
|
||||||
|
GST_BUFFER_FLAG_SET (buf, GST_BUFFER_EOS);
|
||||||
|
return buf;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* create the buffer */
|
/* create the buffer */
|
||||||
|
|
|
@ -238,7 +238,9 @@ gst_disksrc_get (GstPad *pad)
|
||||||
if (src->curoffset >= src->size) {
|
if (src->curoffset >= src->size) {
|
||||||
GST_DEBUG (0,"map offset %ld >= size %ld --> eos\n", src->curoffset, src->size);
|
GST_DEBUG (0,"map offset %ld >= size %ld --> eos\n", src->curoffset, src->size);
|
||||||
gst_pad_set_eos (pad);
|
gst_pad_set_eos (pad);
|
||||||
return NULL;
|
buf = gst_buffer_new();
|
||||||
|
GST_BUFFER_FLAG_SET (buf, GST_BUFFER_EOS);
|
||||||
|
return buf;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* create the buffer */
|
/* create the buffer */
|
||||||
|
|
Loading…
Reference in a new issue