[gstreamer-bugs] [Bug 619434] playbin2: seek in PAUSED state with a custom text-sink

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Thu Jun 24 01:12:59 PDT 2010


https://bugzilla.gnome.org/show_bug.cgi?id=619434
  GStreamer | gst-plugins-base | 0.10.29

--- Comment #6 from Changwoo Ryu <cwryu at debian.org> 2010-06-24 08:12:57 UTC ---
In my first attached code in this bug, I actually created a bin which parses
the subtitles and outputs the result to appsink.

    /* make my custom text-sink */
    GstElement *subbin;
    GstElement *appsink;

    subbin = gst_bin_new("subbin");
    subparse = gst_element_factory_make("subparse", NULL);
    appsink = gst_element_factory_make("appsink", NULL);

    gst_bin_add_many(GST_BIN(subbin), subparse, appsink, NULL);
    gst_element_link_many(subparse, appsink, NULL);

    GstPad *ghostpad;
    GstPad *subparsesink;
    subparsesink = gst_element_get_static_pad(subparse, "sink");
    ghostpad = gst_ghost_pad_new("sink", subparsesink);
    g_object_unref(G_OBJECT(subparsesink));
    gst_element_add_pad(subbin, ghostpad);

    g_object_set(G_OBJECT (pipeline), "text-sink", subbin, NULL);

Simple playing works very well with this way, but after several seek/pause/play
the subtitle went out-of-sync with audio/video by a few seconds or even a few
minutes. Going PAUSED and seeking to 0 is a clear way to reproduce it.

I have not tried the playbin-text.c yet (it seems to require git HEAD version).

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