From e203621dcb91933769322c57bcfc0700d7ead90f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Sun, 26 Feb 2006 14:42:29 +0000 Subject: [PATCH] plugins/elements/gsttypefindelement.c: Use gst_pad_check_pull_range() before _activate_pull() to avoid unnecessary op... Original commit message from CVS: * plugins/elements/gsttypefindelement.c: (gst_type_find_element_activate): Use gst_pad_check_pull_range() before _activate_pull() to avoid unnecessary open/close (see #331690). --- ChangeLog | 7 +++++++ plugins/elements/gsttypefindelement.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 39e6977ee4..8a8f83b819 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-02-26 Tim-Philipp Müller + + * plugins/elements/gsttypefindelement.c: + (gst_type_find_element_activate): + Use gst_pad_check_pull_range() before _activate_pull() + to avoid unnecessary open/close (see #331690). + 2006-02-24 Tim-Philipp Müller * gst/gstutils.c: diff --git a/plugins/elements/gsttypefindelement.c b/plugins/elements/gsttypefindelement.c index 5cbd91c161..82dd3b5955 100644 --- a/plugins/elements/gsttypefindelement.c +++ b/plugins/elements/gsttypefindelement.c @@ -875,7 +875,7 @@ gst_type_find_element_activate (GstPad * pad) */ /* 1 */ - if (!gst_pad_activate_pull (pad, TRUE)) { + if (!gst_pad_check_pull_range (pad) || !gst_pad_activate_pull (pad, TRUE)) { start_typefinding (typefind); return gst_pad_activate_push (pad, TRUE); } -- 2.34.1