mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +00:00
gst/playback/gstplaybasebin.c: Revert patch 1.38 as clock distribution over schedulers does not work correcly in the ...
Original commit message from CVS: * gst/playback/gstplaybasebin.c: (gst_play_base_bin_add_element): Revert patch 1.38 as clock distribution over schedulers does not work correcly in the core yet.
This commit is contained in:
parent
969fef4146
commit
96d3bbd82e
2 changed files with 15 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2004-12-22 Wim Taymans <wim@fluendo.com>
|
||||||
|
|
||||||
|
* gst/playback/gstplaybasebin.c: (gst_play_base_bin_add_element):
|
||||||
|
Revert patch 1.38 as clock distribution over schedulers does
|
||||||
|
not work correcly in the core yet.
|
||||||
|
|
||||||
2004-12-21 Stephane Loeuillet <stephane.loeuillet@tiscali.fr>
|
2004-12-21 Stephane Loeuillet <stephane.loeuillet@tiscali.fr>
|
||||||
|
|
||||||
* sys/oss/README: remove this file, which predates my birth
|
* sys/oss/README: remove this file, which predates my birth
|
||||||
|
|
|
@ -1312,6 +1312,9 @@ gst_play_base_bin_add_element (GstBin * bin, GstElement * element)
|
||||||
play_base_bin = GST_PLAY_BASE_BIN (bin);
|
play_base_bin = GST_PLAY_BASE_BIN (bin);
|
||||||
|
|
||||||
if (play_base_bin->thread) {
|
if (play_base_bin->thread) {
|
||||||
|
GstScheduler *sched;
|
||||||
|
GstClock *clock;
|
||||||
|
|
||||||
if (play_base_bin->threaded) {
|
if (play_base_bin->threaded) {
|
||||||
gchar *name;
|
gchar *name;
|
||||||
GstElement *thread;
|
GstElement *thread;
|
||||||
|
@ -1324,6 +1327,12 @@ gst_play_base_bin_add_element (GstBin * bin, GstElement * element)
|
||||||
element = thread;
|
element = thread;
|
||||||
}
|
}
|
||||||
gst_bin_add (GST_BIN (play_base_bin->thread), element);
|
gst_bin_add (GST_BIN (play_base_bin->thread), element);
|
||||||
|
|
||||||
|
/* hack, the clock is not correctly distributed in the core */
|
||||||
|
sched = gst_element_get_scheduler (GST_ELEMENT (play_base_bin->thread));
|
||||||
|
clock = gst_scheduler_get_clock (sched);
|
||||||
|
gst_scheduler_set_clock (sched, clock);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
g_warning ("adding elements is not allowed in NULL");
|
g_warning ("adding elements is not allowed in NULL");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue