diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/xine-engine/post.c | 8 | ||||
-rw-r--r-- | src/xine-engine/post.h | 10 |
2 files changed, 10 insertions, 8 deletions
diff --git a/src/xine-engine/post.c b/src/xine-engine/post.c index 337cba023..b43265a92 100644 --- a/src/xine-engine/post.c +++ b/src/xine-engine/post.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: post.c,v 1.3 2002/12/24 13:36:21 miguelfreitas Exp $ + * $Id: post.c,v 1.4 2002/12/25 15:03:20 mroi Exp $ */ /* @@ -76,7 +76,7 @@ static void post_video_flush(xine_video_port_t *port_gen) { } -post_video_port_t *post_intercept_video_port(xine_video_port_t *original) { +post_video_port_t *post_intercept_video_port(post_plugin_t *post, xine_video_port_t *original) { post_video_port_t *post_port = (post_video_port_t *)malloc(sizeof(post_video_port_t)); if (!post_port) @@ -94,6 +94,7 @@ post_video_port_t *post_intercept_video_port(xine_video_port_t *original) { post_port->port.driver = original->driver; post_port->original_port = original; + post_port->post = post; return post_port; } @@ -229,7 +230,7 @@ static void post_audio_flush(xine_audio_port_t *port_gen) { return port->original_port->flush(port->original_port); } -post_audio_port_t *post_intercept_audio_port(xine_audio_port_t *original) { +post_audio_port_t *post_intercept_audio_port(post_plugin_t *post, xine_audio_port_t *original) { post_audio_port_t *post_port = (post_audio_port_t *)malloc(sizeof(post_audio_port_t)); if (!post_port) @@ -249,6 +250,7 @@ post_audio_port_t *post_intercept_audio_port(xine_audio_port_t *original) { post_port->original_port = original; + post_port->post = post; return post_port; } diff --git a/src/xine-engine/post.h b/src/xine-engine/post.h index 115e96a22..d50b1d575 100644 --- a/src/xine-engine/post.h +++ b/src/xine-engine/post.h @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: post.h,v 1.3 2002/12/24 13:36:21 miguelfreitas Exp $ + * $Id: post.h,v 1.4 2002/12/25 15:03:20 mroi Exp $ * * post plugin definitions * @@ -119,12 +119,12 @@ struct post_video_port_s { /* backward reference so that you have access to the post plugin * when the call only gives you the port */ - xine_post_t *post; + post_plugin_t *post; }; /* use this to create a new, trivially decorated video port in which * port functions can be replaced with own implementations */ -post_video_port_t *post_intercept_video_port(xine_video_port_t *port); +post_video_port_t *post_intercept_video_port(post_plugin_t *post, xine_video_port_t *port); /* use this to decorate and to undecorate a frame so that its functions * can be replaced with own implementations */ @@ -143,11 +143,11 @@ struct post_audio_port_s { /* backward reference so that you have access to the post plugin * when the call only gives you the port */ - xine_post_t *post; + post_plugin_t *post; }; /* use this to create a new, trivially decorated audio port in which * port functions can be replaced with own implementations */ -post_audio_port_t *post_intercept_audio_port(xine_audio_port_t *port); +post_audio_port_t *post_intercept_audio_port(post_plugin_t *post, xine_audio_port_t *port); #endif |