[gstreamer-bugs] [Bug 584987] [playbin2] [gapless] Fire a track-changed message on track change.
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Mon Nov 16 12:43:34 PST 2009
https://bugzilla.gnome.org/show_bug.cgi?id=584987
GStreamer | gst-plugins-base | git
Stefan Kost (gstreamer, gtkdoc dev) <ensonic> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ensonic at sonicpulse.de
--- Comment #5 from Stefan Kost (gstreamer, gtkdoc dev) <ensonic at sonicpulse.de> 2009-11-16 20:43:32 UTC ---
The practise in level, spectrum and other plugins is to include a timestamp.
This unfortunately makes it tedious for apps to handle it. The need to
clock_id=gst_clock_new_single_shot_id(clock,target_time);
gst_clock_id_wait_async(clock_id,on_delayed_bus_message,(gpointer)user_data);
gst_clock_id_unref(clock_id);
static gboolean on_delayed_bus_message(GstClock *clock,GstClockTime
time,GstClockID id,gpointer user_data) {
// the callback is called from a clock thread
if(GST_CLOCK_TIME_IS_VALID(time))
g_idle_add(on_delayed_idle_bus_message,user_data);
else
g_free(user_data);
return(TRUE);
}
and finally handle it. I was proposing to use synced evens before, especially
as GstBaseSink could turn them into a bus message in a generic way
(gst_event_get_structure).
Unfortunately I got no agreement. I don't remmeber the details, but it was like
"the apps should do it".
--
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