summaryrefslogtreecommitdiff
path: root/src/demuxers/demux_mpgaudio.c
diff options
context:
space:
mode:
authorDaniel Caujolle-Bert <f1rmb@users.sourceforge.net>2002-08-30 14:19:48 +0000
committerDaniel Caujolle-Bert <f1rmb@users.sourceforge.net>2002-08-30 14:19:48 +0000
commitbaf143202f8271a0d642431b2c0c74f35d6d99a1 (patch)
tree6a817227e10728a3ed648b35f12664a562c541ff /src/demuxers/demux_mpgaudio.c
parent5ce182a1f7ea129790559637b00adf235e0ae635 (diff)
downloadxine-lib-baf143202f8271a0d642431b2c0c74f35d6d99a1.tar.gz
xine-lib-baf143202f8271a0d642431b2c0c74f35d6d99a1.tar.bz2
Add two new xine events: inform UI when vo output is needed or not (it's the
job of demuxers to send this NO_VIDEO event, and mpgaudio is the only one which implement that yet). CVS patchset: 2563 CVS date: 2002/08/30 14:19:48
Diffstat (limited to 'src/demuxers/demux_mpgaudio.c')
-rw-r--r--src/demuxers/demux_mpgaudio.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/demuxers/demux_mpgaudio.c b/src/demuxers/demux_mpgaudio.c
index 8298976ed..407c90602 100644
--- a/src/demuxers/demux_mpgaudio.c
+++ b/src/demuxers/demux_mpgaudio.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_mpgaudio.c,v 1.57 2002/08/25 11:15:10 tmattern Exp $
+ * $Id: demux_mpgaudio.c,v 1.58 2002/08/30 14:19:48 f1rmb Exp $
*
* demultiplexer for mpeg audio (i.e. mp3) streams
*
@@ -156,7 +156,7 @@ static void read_id3_tags (demux_mpgaudio_t *this) {
pos = this->input->get_length(this->input) - 128;
this->input->seek (this->input, pos, SEEK_SET);
- len = this->input->read (this->input, &tag, 128);
+ len = this->input->read (this->input, (char *)&tag, 128);
if (len>0) {
@@ -313,8 +313,15 @@ static int demux_mpgaudio_next (demux_mpgaudio_t *this) {
static void *demux_mpgaudio_loop (void *this_gen) {
demux_mpgaudio_t *this = (demux_mpgaudio_t *) this_gen;
+ buf_element_t *buf;
pthread_mutex_lock( &this->mutex );
+
+ buf = this->video_fifo->buffer_pool_alloc(this->video_fifo);
+ buf->type = BUF_CONTROL_NOP;
+ buf->decoder_flags = BUF_FLAG_NO_VIDEO;
+ this->video_fifo->put(this->video_fifo, buf);
+
/* do-while needed to seek after demux finished */
do {
@@ -478,7 +485,7 @@ static int demux_mpgaudio_start (demux_plugin_t *this_gen,
if( !this->thread_running ) {
xine_demux_control_start(this->xine);
-
+
/*
* now start demuxing
*/