What happens here is that thumbnailer calls the
gst_app_sink_pull_preroll function which fails. The documentation
(http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-
base-libs/html/gst-plugins-base-libs-appsink.html#gst-app-sink-pull-
preroll) says that this returns null if EOS has been reached. Printf
debugging says that this is indeed the case, it returns null and
gst_app_sink_is_eos reports true. After EOS no more samples can be
obtained from the stream.

The previous gstreamer method we call is gst_element_seek_simple. It
returns true indicating success and the seek point we specify is valid
(134000000 which is less than the duration 469000000).

Unless someone can show that thumbnailer is using gstreamer incorrectly,
it seems to be the case that gstreamer somehow internally causes EOS to
be emitted. This would make this a bug in gstreamer rather than
thumbnailer.

For comparison I also tested GST_SEEK_FLAG_ACCURATE instead of
GST_SEEK_FLAG_KEY_UNIT but the behaviour is the same.

** Also affects: gst-plugins-base1.0 (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: gst-plugins-base1.0 (Ubuntu)
     Assignee: (unassigned) => Jim Hodapp (jhodapp)

** Changed in: gst-plugins-base1.0 (Ubuntu)
   Importance: Undecided => High

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1391286

Title:
  Fails to generate thumbnail for small videos recorded with camera-app

To manage notifications about this bug go to:
https://bugs.launchpad.net/thumbnailer/+bug/1391286/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to