From a74413f06efef91496b3f5b9f749b328ede19ac8 Mon Sep 17 00:00:00 2001 From: Michael Roitzsch Date: Sat, 29 May 2004 14:45:25 +0000 Subject: separate the two semantics of querying a port's status with a NULL stream; before, NULL could mean two things: no stream at all or a stream that does not want to be addressed; now the latter is represented by the new XINE_ANON_STREAM resulting changes: * the status() functions now behave differently for NULL and XINE_ANON_STREAM (as the commentary always implied, but this was not the case, so post plugin rewiring went wrong, because it relies on the status() function) * the NULL_STREAM defines in audio_out and video_out are obsolete * update the function comments in the headers * update the post plugin rewire functions to use the status() functions to check, if the old port was opened and handle the new one accordingly; this makes open_count obsolete * change all post plugins accordingly (mostly using XINE_ANON_STREAM instead of NULL) additional change: * the status() function of audio port now returns the bits/rate/mode values of the input and not the output; this is more likely to be what a post plugin wants * the reimplementation of status() in the upmix plugin is obsolete CVS patchset: 6603 CVS date: 2004/05/29 14:45:25 --- src/post/mosaico/mosaico.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/post/mosaico/mosaico.c') diff --git a/src/post/mosaico/mosaico.c b/src/post/mosaico/mosaico.c index 31a55dc99..67b9e3e5d 100644 --- a/src/post/mosaico/mosaico.c +++ b/src/post/mosaico/mosaico.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: mosaico.c,v 1.23 2004/04/17 19:54:31 mroi Exp $ + * $Id: mosaico.c,v 1.24 2004/05/29 14:45:26 mroi Exp $ */ /* @@ -294,7 +294,7 @@ static void mosaico_close(xine_video_port_t *port_gen, xine_stream_t *stream) pthread_mutex_lock(&this->mutex); free_frame = this->pip[pip_num].frame; this->pip[pip_num].frame = NULL; - port->original_port->close(port->original_port, NULL); + port->original_port->close(port->original_port, port->stream); pthread_mutex_unlock(&this->mutex); if (free_frame) -- cgit v1.2.3