[Bug 751292] New: bpmdetect: invalid timestamp in pushed GstEvent

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Sun Jun 21 11:47:08 PDT 2015


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

            Bug ID: 751292
           Summary: bpmdetect: invalid timestamp in pushed GstEvent
    Classification: Platform
           Product: GStreamer
           Version: 1.5.1
                OS: All
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gst-plugins-bad
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: polezhaiev at ukr.net
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

It's always equal to 18446744073709551615 when I try to fetch tags like that
(sorry for C++11):

    gst_pad_set_event_function_full(pad, [](GstPad *pad, GstObject *parent,
GstEvent *event) -> gboolean
    {
        switch (GST_EVENT_TYPE(event))
        {
        case GST_EVENT_TAG:
            {
                gdouble bpm = 0;
                GstTagList *tag_list = nullptr;
                gst_event_parse_tag(event, &tag_list);
                gst_tag_list_get_double(tag_list, GST_TAG_BEATS_PER_MINUTE,
&bpm);
                g_print("BPM change detected: %lf BPM\n", bpm);
                /// What GST_EVENT_TIMESTAMP(event) should show here?
            }
            break;
        default:
            break;
        }
        return true;
    }, nullptr, nullptr);

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