[Bug 667116] New: wrong segment processing on gst_input_selector_set_active_pad

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Sun Jan 1 23:57:28 PST 2012


https://bugzilla.gnome.org/show_bug.cgi?id=667116
  GStreamer | gstreamer (core) | 0.10.32

           Summary: wrong segment processing on
                    gst_input_selector_set_active_pad
    Classification: Platform
           Product: GStreamer
           Version: 0.10.32
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gstreamer (core)
        AssignedTo: gstreamer-bugs at lists.freedesktop.org
        ReportedBy: Hyunwoo.Park at gmail.com
         QAContact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---


There is a segment that is not properly processed on
gst_input_selector_set_active_pad on input-selector element at frequent input
source change. If there is no subsequent call of gst_selector_pad_chain between
two gst_input_selector_set_active_pad function call, second
gst_input_selector_set_active_pad call make wrong NEWSEGMENT event to a
fallowing basesink element.

Fallowing patch may fix this bug.


Index: plugins/elements/gstinputselector.c
===================================================================
--- plugins/elements/gstinputselector.c    (revision 39354)
+++ plugins/elements/gstinputselector.c    (working copy)
@@ -1038,6 +1038,7 @@
         GST_TIME_ARGS (start_time));
     /* schedule a new segment push */
     gst_segment_set_start (&new->segment, start_time);
+    gst_segment_set_last_stop (&new->segment, new->segment.format,
start_time);
     new->segment_pending = TRUE;
   }

-- 
Configure bugmail: https://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