summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJuergen Keil <jkeil@users.sourceforge.net>2001-10-06 13:48:17 +0000
committerJuergen Keil <jkeil@users.sourceforge.net>2001-10-06 13:48:17 +0000
commit41dec6804474c55b7b4f89dcf1b70d654a5df002 (patch)
treef8980142729c9e0979256fc440bf21b726060fd3 /src
parentc60c8f10682fac17b1d510c27978fe729b4e96f1 (diff)
downloadxine-lib-41dec6804474c55b7b4f89dcf1b70d654a5df002.tar.gz
xine-lib-41dec6804474c55b7b4f89dcf1b70d654a5df002.tar.bz2
Change the text printed when we see a CSS MPEG2 stream to something similar to
the text printed by the input_dvd plugin. Abort the demuxer when we see a CSS MPEG2 stream. CVS patchset: 748 CVS date: 2001/10/06 13:48:17
Diffstat (limited to 'src')
-rw-r--r--src/demuxers/demux_mpeg_block.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/demuxers/demux_mpeg_block.c b/src/demuxers/demux_mpeg_block.c
index 8d1815633..c59f5723e 100644
--- a/src/demuxers/demux_mpeg_block.c
+++ b/src/demuxers/demux_mpeg_block.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: demux_mpeg_block.c,v 1.50 2001/10/06 11:54:49 jcdutton Exp $
+ * $Id: demux_mpeg_block.c,v 1.51 2001/10/06 13:48:17 jkeil Exp $
*
* demultiplexer for mpeg 1/2 program streams
*
@@ -281,12 +281,16 @@ static void demux_mpeg_block_parse_pack (demux_mpeg_block_t *this, int preview_m
}
} else { /* mpeg 2 */
+ /* check PES scrambling_control */
if ((p[6] & 0x30) != 0) {
- printf("demux_mpeg_block:Encrypted PES MPEG2 stream.\n");
- printf(" You will need to find an input plugin which can decrypt.\n");
+ printf("demux_mpeg_block: Encrypted PES MPEG2 stream.\n");
+ printf("\n\tSorry, Xine doesn't play encrypted MPEG2 streams. The legal status of\n"
+ "\tCSS decryption is unclear and we will not provide such code.\n\n");
buf->free_buffer(buf);
+ this->status = DEMUX_FINISHED;
return;
}
+
if (p[7] & 0x80) { /* PTS avail */
PTS = (p[ 9] & 0x0E) << 29 ;