From: Wim Taymans Date: Sun, 2 Jun 2002 11:57:12 +0000 (+0000) Subject: Remove media specific seeking type in favour of unit. xvimage compile fix. X-Git-Tag: 1.19.3~511^2~15965 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d22b3522874383617aa7c32a58d4109302db5ebe;p=platform%2Fupstream%2Fgstreamer.git Remove media specific seeking type in favour of unit. xvimage compile fix. Original commit message from CVS: Remove media specific seeking type in favour of unit. xvimage compile fix. --- diff --git a/ext/vorbis/vorbisfile.c b/ext/vorbis/vorbisfile.c index dea5a78..7418364 100644 --- a/ext/vorbis/vorbisfile.c +++ b/ext/vorbis/vorbisfile.c @@ -370,7 +370,7 @@ gst_vorbisfile_loop (GstElement *element) } } break; - case GST_FORMAT_SAMPLES: + case GST_FORMAT_UNIT: if (vorbisfile->seek_accurate) { if (ov_pcm_seek (&vorbisfile->vf, (gdouble) vorbisfile->seek_value / GST_SECOND) == 0) { vorbisfile->need_discont = TRUE; @@ -398,7 +398,7 @@ gst_vorbisfile_loop (GstElement *element) samples = (gint64) (ov_pcm_tell (&vorbisfile->vf)); discont = gst_event_new_discontinuous (FALSE, GST_FORMAT_TIME, time, - GST_FORMAT_SAMPLES, samples, NULL); + GST_FORMAT_UNIT, samples, NULL); vorbisfile->need_discont = FALSE; gst_pad_push (vorbisfile->srcpad, GST_BUFFER (discont)); @@ -463,7 +463,7 @@ gst_vorbisfile_src_query (GstPad *pad, GstPadQueryType type, case GST_PAD_QUERY_TOTAL: { switch (*format) { - case GST_FORMAT_SAMPLES: + case GST_FORMAT_UNIT: *value = ov_pcm_total (&vorbisfile->vf, -1); break; case GST_FORMAT_BYTES: @@ -489,7 +489,7 @@ gst_vorbisfile_src_query (GstPad *pad, GstPadQueryType type, case GST_FORMAT_TIME: *value = (gint64) (ov_time_tell (&vorbisfile->vf) * GST_SECOND); break; - case GST_FORMAT_SAMPLES: + case GST_FORMAT_UNIT: *value = ov_pcm_tell (&vorbisfile->vf); break; default: @@ -522,10 +522,10 @@ gst_vorbisfile_src_event (GstPad *pad, GstEvent *event) vorbisfile->seek_format = GST_FORMAT_TIME; vorbisfile->seek_accurate = GST_EVENT_SEEK_FLAGS (event) & GST_SEEK_FLAG_ACCURATE; break; - case GST_FORMAT_SAMPLES: + case GST_FORMAT_UNIT: vorbisfile->seek_pending = TRUE; vorbisfile->seek_value = GST_EVENT_SEEK_OFFSET (event); - vorbisfile->seek_format = GST_FORMAT_SAMPLES; + vorbisfile->seek_format = GST_FORMAT_UNIT; vorbisfile->seek_accurate = GST_EVENT_SEEK_FLAGS (event) & GST_SEEK_FLAG_ACCURATE; break; default: