[DRE-maint] Bug#766020: ruby-gstreamer: Overflow of nanoseconds on 32-bit platforms

Mario Lang mlang at tugraz.at
Mon Oct 20 08:26:12 UTC 2014


Package: ruby-gstreamer
Version: 2.2.0-5
Severity: important

Querying position and duration information on a 32-bit platform
is more or less completely useless, since the unit of time
returned by GStreamer is nanoseconds, which does not fit (and therefore
overflow and wrap) into a 32-bit value:

---<snip>---
require 'gst'

bin = Gst::parse_launch("playbin")
bin.uri = 'http://delysid.org/music/delYsid-delUxe.ogg'
bin.play
sleep 1
result, dur = bin.query_duration(Gst::Format::TIME)
puts dur
---<snip>---

On this 32-bit system, I get:

-1010310203

which nicely confirms the overflow.


I am actually not sure if this is a problem with GStreamer API, or with
the GStreamer Ruby bindings.  I am filing against the Ruby bindings
because this is where I noticed the bug.

Note that everything works fine on a 64-bit platform.

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 3.14-2-686-pae (SMP w/2 CPU cores)
Locale: LANG=de_AT.UTF-8, LC_CTYPE=de_AT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages ruby-gstreamer depends on:
ii  gir1.2-gstreamer-1.0        1.4.1-1
ii  libc6                       2.19-10
ii  libgirepository-1.0-1       1.40.0-2
ii  libglib2.0-0                2.40.0-5
ii  libgmp10                    2:6.0.0+dfsg-6
ii  libgstreamer1.0-0           1.4.1-1
ii  libruby2.1                  2.1.3-1
ii  ruby-atk                    2.2.0-5
ii  ruby-gdk-pixbuf2            2.2.0-5
ii  ruby-gobject-introspection  2.2.0-5
ii  ruby-pango                  2.2.0-5

ruby-gstreamer recommends no packages.

ruby-gstreamer suggests no packages.

-- no debconf information

-- 
Regards,
      Mario Lang

Graz University of Technology        mailto:mlang at TUGraz.at
Department Computing               http://www.ZID.TUGraz.at/lang/
Phone: +43 (0) 316 / 873 - 6897



More information about the Pkg-ruby-extras-maintainers mailing list