stream = &avi_demux->stream[stream_id];
- GST_DEBUG (0,"gst_avi_demux_chain: tag found %08x size %08x",
- chunkid, *chunksize);
+ GST_DEBUG (0,"gst_avi_demux_chain: tag found %08x size %08x stream_id %d",
+ chunkid, *chunksize, stream_id);
format = GST_FORMAT_TIME;
gst_pad_query (stream->pad, GST_PAD_QUERY_POSITION, &format, &next_ts);
stream->skip--;
}
else {
- if (GST_PAD_IS_CONNECTED (stream->pad)) {
+ if (stream->pad && GST_PAD_IS_CONNECTED (stream->pad)) {
GstBuffer *buf;
guint32 got_bytes;
#define GST_AVI_DEMUX_MAX_STREAMS 16
#define CHUNKID_TO_STREAMNR(chunkid) \
- (((GUINT32_FROM_BE (chunkid) >> 24) - '0') * 10 + \
- ((GUINT32_FROM_BE (chunkid) >> 16) & 0xff) - '0')
+ ((((chunkid) & 0xff) - '0') * 10 + \
+ (((chunkid) >> 8) & 0xff) - '0')
typedef struct _GstAviDemux GstAviDemux;
typedef struct _GstAviDemuxClass GstAviDemuxClass;