diff options
Diffstat (limited to 'gnl/gnlcomposition.c')
-rw-r--r-- | gnl/gnlcomposition.c | 27 |
1 files changed, 6 insertions, 21 deletions
diff --git a/gnl/gnlcomposition.c b/gnl/gnlcomposition.c index 98079fb..7107e7f 100644 --- a/gnl/gnlcomposition.c +++ b/gnl/gnlcomposition.c @@ -735,8 +735,6 @@ ghost_event_probe_handler (GstPad * ghostpad G_GNUC_UNUSED, break; case GST_EVENT_EOS: { - GstClockTime duration, curpos; - COMP_FLUSHING_LOCK (comp); if (priv->flushing) { GST_DEBUG_OBJECT (comp, "flushing, bailing out"); @@ -753,26 +751,13 @@ ghost_event_probe_handler (GstPad * ghostpad G_GNUC_UNUSED, g_source_remove (priv->pending_idle); } - /* Get current position */ - if ((curpos = get_current_position (comp)) != GST_CLOCK_TIME_NONE) { - - if (comp->priv->segment->rate >= 0.0) - duration = GNL_OBJECT (comp)->duration; - else - duration = 0; - - if (curpos != duration) { - /* FIXME : This should be switched to using a g_thread_create() instead - * of a g_idle_add(). EXTENSIVE TESTING AND ANALYSIS REQUIRED BEFORE - * DOING THE SWITCH !!! */ - priv->pending_idle = - g_idle_add ((GSourceFunc) eos_main_thread, (gpointer) comp); + /* FIXME : This should be switched to using a g_thread_create() instead + * of a g_idle_add(). EXTENSIVE TESTING AND ANALYSIS REQUIRED BEFORE + * DOING THE SWITCH !!! */ + priv->pending_idle = + g_idle_add ((GSourceFunc) eos_main_thread, (gpointer) comp); - retval = GST_PAD_PROBE_DROP; - } - } - GST_DEBUG_OBJECT (comp, "Got EOS for real, fowarding it"); - /* Else if it is real eos... send it downstream */ + retval = GST_PAD_PROBE_DROP; } break; default: |