Details
Description
Hi,
I'm trying to run a video with a large size (600Mb but I have only 400Mb in my system),
- Using http protocol, the video starts to play and then I'm getting the following failures:
sometimes
"terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc"
and sometimes
"GStreamer-ERROR **: gstbuffer.c:542: failed to allocate XXXXXXXXXXX bytes"
Adding some printfs in StreamingClient::didReceiveData function to know the length of the streamed data, I see a large size (for example: length == 110178407)
It tries to allocate an amount of memory greater than what we have , which will cause the error.
Is there any way to decrease the size of the data streamed?
How it is calculated?
Is it in relation with the duration?
If gst-element_querry_duration is returning incorrect duration, does it affects the size of the streamed data?
I'm using gstreamer 0.10.x and sometimes gst-element_querry_duration() is returning an incorrect duration.
Many thanks.
Attachments
For Gerrit Dashboard: QTBUG-36979 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
79565,4 | Do no allow arbitrarily large buffer during loading | stable | qt/qtwebkit | Status: MERGED | +2 | 0 |