diff options
author | hschang <chang@dev3> | 2014-04-30 09:51:20 (GMT) |
---|---|---|
committer | hschang <chang@dev3> | 2014-05-02 01:48:35 (GMT) |
commit | 0bf626230ef1162aaf2da2646a867f42f5618950 (patch) | |
tree | 24e49a22e820e9cbd350763cdfb9c26e4dea571f /meta-openvuplus/recipes-multimedia | |
parent | a4855da10983e194ec3d1345ada044e88e4a3fdd (diff) |
[gstreamer] prevent accumulation of old cached buffers in input-selector.
Diffstat (limited to 'meta-openvuplus/recipes-multimedia')
-rw-r--r-- | meta-openvuplus/recipes-multimedia/gstreamer/gstreamer-0.10.36.1+git/inputselector-cache-fix.patch | 13 | ||||
-rw-r--r-- | meta-openvuplus/recipes-multimedia/gstreamer/gstreamer_0.10.36.1.bb | 3 |
2 files changed, 15 insertions, 1 deletions
diff --git a/meta-openvuplus/recipes-multimedia/gstreamer/gstreamer-0.10.36.1+git/inputselector-cache-fix.patch b/meta-openvuplus/recipes-multimedia/gstreamer/gstreamer-0.10.36.1+git/inputselector-cache-fix.patch new file mode 100644 index 0000000..38ecee3 --- /dev/null +++ b/meta-openvuplus/recipes-multimedia/gstreamer/gstreamer-0.10.36.1+git/inputselector-cache-fix.patch @@ -0,0 +1,13 @@ +diff --git a/plugins/elements/gstinputselector.c b/plugins/elements/gstinputselector.c +index 114a458..5c47b83 100644 +--- a/plugins/elements/gstinputselector.c ++++ b/plugins/elements/gstinputselector.c +@@ -965,7 +965,7 @@ gst_input_selector_cleanup_old_cached_buffers (GstInputSelector * sel, + "checking if buffer %p running time=%" GST_TIME_FORMAT + " >= stream time=%" GST_TIME_FORMAT, buffer, + GST_TIME_ARGS (running_time), GST_TIME_ARGS (cur_running_time)); +- if (running_time >= cur_running_time) { ++ if ( GST_CLOCK_TIME_IS_VALID(running_time) && (running_time >= cur_running_time) ) { + break; + } + diff --git a/meta-openvuplus/recipes-multimedia/gstreamer/gstreamer_0.10.36.1.bb b/meta-openvuplus/recipes-multimedia/gstreamer/gstreamer_0.10.36.1.bb index f4501a7..a92d735 100644 --- a/meta-openvuplus/recipes-multimedia/gstreamer/gstreamer_0.10.36.1.bb +++ b/meta-openvuplus/recipes-multimedia/gstreamer/gstreamer_0.10.36.1.bb @@ -9,7 +9,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=55ca817ccb7d5b5b66355690e9abc605 \ file://gst/gst.h;beginline=1;endline=21;md5=8e5fe5e87d33a04479fde862e238eaa4" DEPENDS = "glib-2.0 libxml2 bison-native flex-native" -PR = "r3" +PR = "r4" GIT_PV = "" SRCREV = "1bcabb9a23afb25dcd059bd827aa35b8ee7e5043" @@ -32,6 +32,7 @@ SRC_URI += " \ file://check_fix.patch \ file://gst-inspect-check-error.patch \ file://multiqueue-sparsestreams.patch \ + file://inputselector-cache-fix.patch \ " do_common_update() { |