[Bug 759807] New: Cannot use GST_STREAM_FLAG_SPARSE with mpegtsmux

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed Dec 23 06:33:23 PST 2015


https://bugzilla.gnome.org/show_bug.cgi?id=759807

            Bug ID: 759807
           Summary: Cannot use GST_STREAM_FLAG_SPARSE with mpegtsmux
    Classification: Platform
           Product: GStreamer
           Version: 1.6.2
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gstreamer (core)
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: alexvasiljev at gmail.com
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

Setting GST_STREAM_FLAG_SPARSE to one of inputs of mpegtsmux stops both input
streams.

May be the cause is in libs/gst/base/gstcollectpads.c

Here is a patch. With this patch GST_STREAM_FLAG_SPARSE works as expected.

diff --git a/libs/gst/base/gstcollectpads.c b/libs/gst/base/gstcollectpads.c
index 8edfe41..14f9926 100644
--- a/libs/gst/base/gstcollectpads.c
+++ b/libs/gst/base/gstcollectpads.c
@@ -1440,7 +1440,8 @@ gst_collect_pads_recalculate_waiting (GstCollectPads *
pads)
       if (!GST_COLLECT_PADS_STATE_IS_SET (data,
GST_COLLECT_PADS_STATE_WAITING)) {
         /* start waiting */
         gst_collect_pads_set_waiting (pads, data, TRUE);
-        result = TRUE;
+      if (!GST_COLLECT_PADS_STATE_IS_SET (data,
GST_COLLECT_PADS_STATE_LOCKED))
+          result = TRUE;
       }
     }
   }

-- 
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