[gstreamer-bugs] [Bug 516989] New: [dvdreadsrc] wrong (negative) stream position returned due to integer overflow
GStreamer (bugzilla.gnome.org)
bugzilla-daemon at bugzilla.gnome.org
Sun Feb 17 05:03:30 PST 2008
If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
http://bugzilla.gnome.org/show_bug.cgi?id=516989
GStreamer | gst-plugins-ugly | Ver: HEAD CVS
Summary: [dvdreadsrc] wrong (negative) stream position returned
due to integer overflow
Product: GStreamer
Version: HEAD CVS
Platform: Other
OS/Version: All
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: gst-plugins-ugly
AssignedTo: gstreamer-bugs at lists.sourceforge.net
ReportedBy: tal_gnome at shalif.com
QAContact: gstreamer-bugs at lists.sourceforge.net
GNOME version: Unspecified
GNOME milestone: Unspecified
Please describe the problem:
Querying position on a dvdreadsrc element returns a negative value once passed
the INT_MAX position on Linux 32bit machine (2147483647)
Steps to reproduce:
(using gst-python for convenience)
1. >>> pipeline = gst.parse_launch("dvdreadsrc name=dvdread title=1 !
fakesink")
2. >>> src = pipeline.get_by_name("dvdread")
3. call src.query_position ( gst.FORMAT_BYTES ) (e.g. every second in a loop)
until it starts returning negative values
Actual results:
example result:
...
2123337728
2136524800
-2144927744
-2131261440
...
Expected results:
should have been something like:...
2123337728
2136524800
2150039550
2163705854
...
Does this happen every time?
Yes
Other information:
adding a cast (gint64) src->cur_pack seems to solve the problem
--
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.
You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=516989.
More information about the Gstreamer-bugs
mailing list