diff options
author | Michael Roitzsch <mroi@users.sourceforge.net> | 2003-03-31 16:12:55 +0000 |
---|---|---|
committer | Michael Roitzsch <mroi@users.sourceforge.net> | 2003-03-31 16:12:55 +0000 |
commit | 48176582f732681957afb1faeeefaca0ec522444 (patch) | |
tree | 81981d2608188278191a2d86d04ade46c464ebf7 | |
parent | 6cacc4405c35238e027123d272a9eb24bfb08eee (diff) | |
download | xine-lib-48176582f732681957afb1faeeefaca0ec522444.tar.gz xine-lib-48176582f732681957afb1faeeefaca0ec522444.tar.bz2 |
make sputext decoder handle stream ID
CVS patchset: 4523
CVS date: 2003/03/31 16:12:55
-rw-r--r-- | src/libsputext/xine_decoder.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/libsputext/xine_decoder.c b/src/libsputext/xine_decoder.c index 4654b0c36..c4776bb70 100644 --- a/src/libsputext/xine_decoder.c +++ b/src/libsputext/xine_decoder.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: xine_decoder.c,v 1.56 2003/03/26 11:06:56 miguelfreitas Exp $ + * $Id: xine_decoder.c,v 1.57 2003/03/31 16:12:55 mroi Exp $ * */ @@ -196,6 +196,12 @@ static void spudec_decode_data (spu_decoder_t *this_gen, buf_element_t *buf) { extra_info_t extra_info; int status; + /* filter unwanted streams */ + if (buf->decoder_flags & BUF_FLAG_PREVIEW) + return; + if ((this->stream->spu_channel & 0x1f) != (buf->type & 0x1f)) + return; + val = (uint32_t * )buf->content; this->lines = *val++; uses_time = *val++; |