gst/id3demux/id3v2frames.c: We require a -base more recent than 0.10.9, so it's safe to use

Original commit message from CVS:
* gst/id3demux/id3v2frames.c: (parse_picture_frame):
We require a -base more recent than 0.10.9, so it's safe to use
GST_TYPE_TAG_IMAGE_TYPE unconditionally now.
* ext/dv/gstdvdec.c: (gst_dvdec_sink_event):
* ext/jpeg/gstjpegdec.c: (gst_jpeg_dec_sink_event):
Use _newsegment_full() now that we depend on a recent enough core.
* gst/wavparse/gstwavparse.c:
Remove cruft that we don't need any longer now that we depend on
a recent enough -base.
This commit is contained in:
Tim-Philipp Müller 2006-11-01 13:59:49 +00:00
parent a0eefe10e2
commit 93c5c6fcba
5 changed files with 24 additions and 20 deletions

View file

@ -1,3 +1,17 @@
2006-11-01 Tim-Philipp Müller <tim at centricular dot net>
* gst/id3demux/id3v2frames.c: (parse_picture_frame):
We require a -base more recent than 0.10.9, so it's safe to use
GST_TYPE_TAG_IMAGE_TYPE unconditionally now.
* ext/dv/gstdvdec.c: (gst_dvdec_sink_event):
* ext/jpeg/gstjpegdec.c: (gst_jpeg_dec_sink_event):
Use _newsegment_full() now that we depend on a recent enough core.
* gst/wavparse/gstwavparse.c:
Remove cruft that we don't need any longer now that we depend on
a recent enough -base.
2006-10-31 Wim Taymans <wim@fluendo.com>
* gst/rtp/Makefile.am:

View file

@ -311,21 +311,20 @@ gst_dvdec_sink_event (GstPad * pad, GstEvent * event)
break;
case GST_EVENT_NEWSEGMENT:{
gboolean update;
gdouble rate;
gdouble rate, applied_rate;
GstFormat format;
gint64 start, stop, position;
/* Once -good depends on core >= 0.10.6, use newsegment_full */
gst_event_parse_new_segment (event, &update, &rate, &format,
&start, &stop, &position);
gst_event_parse_new_segment_full (event, &update, &rate, &applied_rate,
&format, &start, &stop, &position);
GST_DEBUG_OBJECT (dvdec, "Got NEWSEGMENT [%" GST_TIME_FORMAT
" - %" GST_TIME_FORMAT " / %" GST_TIME_FORMAT "]",
GST_TIME_ARGS (start), GST_TIME_ARGS (stop),
GST_TIME_ARGS (position));
gst_segment_set_newsegment (dvdec->segment, update, rate, format,
start, stop, position);
gst_segment_set_newsegment_full (dvdec->segment, update, rate,
applied_rate, format, start, stop, position);
break;
}
default:

View file

@ -1072,21 +1072,20 @@ gst_jpeg_dec_sink_event (GstPad * pad, GstEvent * event)
break;
case GST_EVENT_NEWSEGMENT:{
gboolean update;
gdouble rate;
gdouble rate, applied_rate;
GstFormat format;
gint64 start, stop, position;
/* Once -good depends on core >= 0.10.6, use newsegment_full */
gst_event_parse_new_segment (event, &update, &rate, &format,
&start, &stop, &position);
gst_event_parse_new_segment_full (event, &update, &rate, &applied_rate,
&format, &start, &stop, &position);
GST_DEBUG_OBJECT (dec, "Got NEWSEGMENT [%" GST_TIME_FORMAT
" - %" GST_TIME_FORMAT " / %" GST_TIME_FORMAT "]",
GST_TIME_ARGS (start), GST_TIME_ARGS (stop),
GST_TIME_ARGS (position));
gst_segment_set_newsegment (dec->segment, update, rate, format,
start, stop, position);
gst_segment_set_newsegment_full (dec->segment, update, rate,
applied_rate, format, start, stop, position);
break;
}

View file

@ -513,14 +513,11 @@ parse_picture_frame (ID3TagsWorking * work)
}
if (image && image_caps) {
/* FIXME: remove #ifdef once we depend on -base >= 0.10.9 */
#ifdef GST_TYPE_TAG_IMAGE_TYPE
if (pic_type > 0x14)
pic_type = GST_TAG_IMAGE_TYPE_UNDEFINED;
gst_structure_set (gst_caps_get_structure (image_caps, 0),
"image-type", GST_TYPE_TAG_IMAGE_TYPE,
(GstTagImageType) pic_type, NULL);
#endif
gst_buffer_set_caps (image, image_caps);
gst_caps_unref (image_caps);

View file

@ -60,11 +60,6 @@
#include "gst/riff/riff-media.h"
#include <gst/gst-i18n-plugin.h>
/* FIXME: remove again when we depend on -base >= 0.10.9.1 */
#ifndef GST_RIFF_TAG_fact
#define GST_RIFF_TAG_fact GST_MAKE_FOURCC ('f','a','c','t')
#endif
GST_DEBUG_CATEGORY_STATIC (wavparse_debug);
#define GST_CAT_DEFAULT (wavparse_debug)