summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReinhard Nißl <rnissl@gmx.de>2007-07-27 00:14:09 +0200
committerReinhard Nißl <rnissl@gmx.de>2007-07-27 00:14:09 +0200
commit9c0fb4297e3bbbab42f6b96c372a3102952ddb27 (patch)
tree698f55767a16d198291c7e5c29ca98c90ece6006
parentc064a789c58e08c2e0f92377ce5ec47d01a4eb50 (diff)
downloadxine-lib-9c0fb4297e3bbbab42f6b96c372a3102952ddb27.tar.gz
xine-lib-9c0fb4297e3bbbab42f6b96c372a3102952ddb27.tar.bz2
make use of the new callback function in _x_post_intercept_video_frame()
--HG-- extra : transplant_source : %E9%9C%09%7EQ%19%B6%D8%BCJ587%C5i%AF%D5R%F4%DE
-rw-r--r--src/xine-engine/post.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/xine-engine/post.c b/src/xine-engine/post.c
index 50254378b..053107b6d 100644
--- a/src/xine-engine/post.c
+++ b/src/xine-engine/post.c
@@ -393,10 +393,11 @@ vo_frame_t *_x_post_intercept_video_frame(vo_frame_t *frame, post_video_port_t *
port->new_frame->free ? port->new_frame->free : post_frame_free;
new_frame->dispose =
port->new_frame->dispose ? port->new_frame->dispose : post_frame_dispose;
-
- if (!port->new_frame->draw) {
+
+ if (!port->new_frame->draw || (port->route_preprocessing_procs && port->route_preprocessing_procs(port, frame))) {
/* draw will most likely modify the frame, so the decoder
- * should only request preprocessing when there is no new draw */
+ * should only request preprocessing when there is no new draw
+ * but route_preprocessing_procs() can override this decision */
if (frame->proc_frame && !new_frame->proc_frame)
new_frame->proc_frame = post_frame_proc_frame;
if (frame->proc_slice && !new_frame->proc_slice)