After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 142903 - [PATCH] fdsrc element never resets buffer offset to zero
[PATCH] fdsrc element never resets buffer offset to zero
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
0.8.1
Other Linux
: Normal normal
: 0.8.4
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2004-05-21 14:25 UTC by David Moore
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.3/2.4


Attachments
Patch to fix issue (1.52 KB, patch)
2004-05-21 14:28 UTC, David Moore
none Details | Review

Description David Moore 2004-05-21 14:25:24 UTC
The fdsrc element will always increment its buffer offset after being created,
and will never reset this offset to zero.  This poses a problem, for example,
with spider, which requires the offset to be zero for type detection to occur.

This pipeline:

fdsrc ! spider ! osssink

Will work the first time it is used -- but if spider is removed and replaced
with a new spider for detecting a new audio file, the type detection will fail.
Comment 1 David Moore 2004-05-21 14:28:02 UTC
Created attachment 27906 [details] [review]
Patch to fix issue

This patch resets the buffer offset to zero during the READY_TO_PAUSED
transition.  I chose this behavior because it roughly duplicates the
functionality of the filesrc element, which opens a the file during the
READY_TO_PAUSED transition.  This seemed like the best solution to me, although
another option would be to reset the offset whenever the filedescriptor of the
fdsrc is set.
Comment 2 Benjamin Otte (Company) 2004-06-06 21:11:53 UTC
applied