[packages/gstreamer0.10-plugins-ugly: 18/46] - obsolete
qboosh
qboosh at pld-linux.org
Fri Oct 5 16:52:42 CEST 2012
commit cf86fcd9dc1baf8139c2c17bee7822b32b19810e
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Thu May 29 22:19:01 2008 +0000
- obsolete
Changed files:
gstreamer-plugins-ugly-asf-seek.patch -> 1.2
gstreamer-plugins-ugly-asf-seek.patch | 50 -----------------------------------
1 file changed, 50 deletions(-)
---
diff --git a/gstreamer-plugins-ugly-asf-seek.patch b/gstreamer-plugins-ugly-asf-seek.patch
deleted file mode 100644
index 7e52ebd..0000000
--- a/gstreamer-plugins-ugly-asf-seek.patch
+++ /dev/null
@@ -1,50 +0,0 @@
-diff -up gst-plugins-ugly-0.10.6/gst/asfdemux/gstasfdemux.c.seek gst-plugins-ugly-0.10.6/gst/asfdemux/gstasfdemux.c
---- gst-plugins-ugly-0.10.6/gst/asfdemux/gstasfdemux.c.seek 2007-08-24 14:13:36.000000000 +0200
-+++ gst-plugins-ugly-0.10.6/gst/asfdemux/gstasfdemux.c 2007-08-24 14:12:33.000000000 +0200
-@@ -492,19 +492,35 @@ gst_asf_demux_handle_seek_event (GstASFD
- /* FIXME: should check the KEY_UNIT flag; need to adjust last_stop to
- * real start of data and segment_start to indexed time for key unit seek*/
- if (!gst_asf_demux_seek_index_lookup (demux, &packet, seek_time, &idx_time)) {
-- /* Hackety hack, this sucks. We just seek to an earlier position
-- * and let the sinks throw away the stuff before the segment start */
-- if (flush && (accurate || keyunit_sync)) {
-- seek_time -= 5 * GST_SECOND;
-- if (seek_time < 0)
-- seek_time = 0;
-- }
-+ /* First try to query our source to see if it can convert for us. This is
-+ the case when our source is an mms stream, notice that in this case
-+ gstmms will do a time based seek to get the byte offset, this is not a
-+ problem as the seek to this offset needs to happen anway. */
-+ gint64 offset;
-+ GstFormat dest_format = GST_FORMAT_BYTES;
-+
-+ if (gst_pad_query_peer_convert (demux->sinkpad, GST_FORMAT_TIME, seek_time,
-+ &dest_format, &offset) && dest_format == GST_FORMAT_BYTES) {
-+ packet = (offset - demux->data_offset) / demux->packet_size;
-+ GST_LOG_OBJECT (demux, "convert %" GST_TIME_FORMAT
-+ " to bytes query result: %lld, data_ofset: %llu, packet_size: %u,"
-+ " resulting packet: %u\n", GST_TIME_ARGS (seek_time), offset,
-+ demux->data_offset, demux->packet_size, packet);
-+ } else {
-+ /* Hackety hack, this sucks. We just seek to an earlier position
-+ * and let the sinks throw away the stuff before the segment start */
-+ if (flush && (accurate || keyunit_sync)) {
-+ seek_time -= 5 * GST_SECOND;
-+ if (seek_time < 0)
-+ seek_time = 0;
-+ }
-
-- packet = (guint) gst_util_uint64_scale (demux->num_packets,
-- seek_time, demux->play_time);
-+ packet = (guint) gst_util_uint64_scale (demux->num_packets,
-+ seek_time, demux->play_time);
-
-- if (packet > demux->num_packets)
-- packet = demux->num_packets;
-+ if (packet > demux->num_packets)
-+ packet = demux->num_packets;
-+ }
- } else {
- if (keyunit_sync) {
- GST_DEBUG_OBJECT (demux, "key unit seek, adjust seek_time = %"
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/gstreamer0.10-plugins-ugly.git/commitdiff/7500845ff8f8f8607350113332e067b8fea74bbe
More information about the pld-cvs-commit
mailing list