mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 01:45:33 +00:00
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).
This commit is contained in:
parent
ae0d1ee4a9
commit
e203621dcb
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2006-02-26 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
|
* 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 <tim at centricular dot net>
|
2006-02-24 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
* gst/gstutils.c:
|
* gst/gstutils.c:
|
||||||
|
|
|
@ -875,7 +875,7 @@ gst_type_find_element_activate (GstPad * pad)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* 1 */
|
/* 1 */
|
||||||
if (!gst_pad_activate_pull (pad, TRUE)) {
|
if (!gst_pad_check_pull_range (pad) || !gst_pad_activate_pull (pad, TRUE)) {
|
||||||
start_typefinding (typefind);
|
start_typefinding (typefind);
|
||||||
return gst_pad_activate_push (pad, TRUE);
|
return gst_pad_activate_push (pad, TRUE);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue