+2005-08-23 Owen Fraser-Green <owen@discobabe.net>
+
+ * gst/realmedia/rmdemux.c (gst_rmdemux_src_event): Fixed bug
+ causing events to be passed wrong way.
+ (gst_rmdemux_parse_packet): Avoid accidentally skipping audio.
+
2005-08-22 Jan Schmidt <thaytan@mad.scientist.com>
* ext/mad/gstid3tag.c: (gst_id3_tag_init),
default:
GST_LOG_OBJECT (rmdemux, "Event on sink: type=%d",
GST_EVENT_TYPE (event));
- ret = gst_pad_event_default (rmdemux->sinkpad, event);
+ ret = gst_pad_event_default (pad, event);
break;
}
}
default:
GST_LOG_OBJECT (rmdemux, "Event on src: type=%d", GST_EVENT_TYPE (event));
- ret = gst_pad_event_default (rmdemux->sinkpad, event);
+ ret = gst_pad_event_default (pad, event);
break;
}
stream = gst_rmdemux_get_stream_by_id (rmdemux, id);
- if (rmdemux->offset >= stream->seek_offset) {
+ if ((rmdemux->offset + packet_size) > stream->seek_offset) {
if (gst_pad_alloc_buffer (stream->pad, GST_BUFFER_OFFSET_NONE,
packet_size, stream->caps, &buffer) != GST_FLOW_OK) {
GST_WARNING_OBJECT (rmdemux, "failed to alloc src buffer for stream %d",
}
} else {
GST_DEBUG_OBJECT (rmdemux,
- "Stream %d is skipping: seek_offset=%d, offset=%d", stream->id,
- stream->seek_offset, rmdemux->offset);
+ "Stream %d is skipping: seek_offset=%d, offset=%d, packet_size",
+ stream->id, stream->seek_offset, rmdemux->offset, packet_size);
}
}