[gstreamer-bugs] [Bug 326998] New: GstBaseSrc's send_event handler ignores seek requests after pad activation

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Sat Jan 14 13:41:46 PST 2006


Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=326998
 GStreamer | gstreamer (core) | Ver: HEAD CVS

           Summary: GstBaseSrc's send_event handler ignores seek requests
                    after pad activation
           Product: GStreamer
           Version: HEAD CVS
          Platform: Other
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gstreamer (core)
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: t.i.m at zen.co.uk
         QAContact: gstreamer-bugs at lists.sourceforge.net
     GNOME version: Unspecified
   GNOME milestone: Unspecified


Scenario:

int
main (int argc, char **argv)
{
  GstElement *src;

  gst_init (&argc, &argv);

  src = gst_element_factory_make ("cdparanoiasrc", NULL);
  gst_element_set_state (src, GST_STATE_PAUSED);
  gst_element_get_state (src, NULL, NULL, -1);

  /* seek to track #3 (2 as counting from 0 here) */
  gst_element_seek (src, 1.0, gst_format_get_by_nick ("track"), 0,
                    GST_SEEK_TYPE_SET, 2, GST_SEEK_TYPE_NONE, 0);

  gst_element_set_state (src, GST_STATE_PLAYING);

  ...
}

This seek request is going to be swallowed, because gst_base_src_send_event()
simply saves the seek request as pending_seek, which is only ever looked at at
pad activation time, so it's never executed when we're after pad activation
already.


-- 
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.




More information about the Gstreamer-bugs mailing list