ext/aalib/gstaasink.c (gst_aasink_fixate): Update for newer fixate prototype.
Original commit message from CVS: 2005-07-04 Andy Wingo <wingo@pobox.com> * ext/aalib/gstaasink.c (gst_aasink_fixate): Update for newer fixate prototype.
This commit is contained in:
parent
dc26238905
commit
aedfb1663d
@ -1,3 +1,8 @@
|
|||||||
|
2005-07-04 Andy Wingo <wingo@pobox.com>
|
||||||
|
|
||||||
|
* ext/aalib/gstaasink.c (gst_aasink_fixate): Update for newer
|
||||||
|
fixate prototype.
|
||||||
|
|
||||||
2005-07-03 Owen Fraser-Green <owen@discobabe.net>
|
2005-07-03 Owen Fraser-Green <owen@discobabe.net>
|
||||||
|
|
||||||
* gst/realmedia/rmdemux.c (gst_rmdemux_add_stream),
|
* gst/realmedia/rmdemux.c (gst_rmdemux_add_stream),
|
||||||
|
@ -230,31 +230,16 @@ gst_aasink_class_init (GstAASinkClass * klass)
|
|||||||
gstbasesink_class->render = GST_DEBUG_FUNCPTR (gst_aasink_render);
|
gstbasesink_class->render = GST_DEBUG_FUNCPTR (gst_aasink_render);
|
||||||
}
|
}
|
||||||
|
|
||||||
static GstCaps *
|
static void
|
||||||
gst_aasink_fixate (GstPad * pad, GstCaps * caps)
|
gst_aasink_fixate (GstPad * pad, GstCaps * caps)
|
||||||
{
|
{
|
||||||
GstStructure *structure;
|
GstStructure *structure;
|
||||||
GstCaps *newcaps;
|
|
||||||
|
|
||||||
if (gst_caps_get_size (caps) > 1)
|
structure = gst_caps_get_structure (caps, 0);
|
||||||
return NULL;
|
|
||||||
|
|
||||||
newcaps = gst_caps_copy (caps);
|
gst_caps_structure_fixate_field_nearest_int (structure, "width", 320);
|
||||||
structure = gst_caps_get_structure (newcaps, 0);
|
gst_caps_structure_fixate_field_nearest_int (structure, "height", 240);
|
||||||
|
gst_caps_structure_fixate_field_nearest_double (structure, "framerate", 30.0);
|
||||||
if (gst_caps_structure_fixate_field_nearest_int (structure, "width", 320)) {
|
|
||||||
return newcaps;
|
|
||||||
}
|
|
||||||
if (gst_caps_structure_fixate_field_nearest_int (structure, "height", 240)) {
|
|
||||||
return newcaps;
|
|
||||||
}
|
|
||||||
if (gst_caps_structure_fixate_field_nearest_double (structure, "framerate",
|
|
||||||
30.0)) {
|
|
||||||
return newcaps;
|
|
||||||
}
|
|
||||||
|
|
||||||
gst_caps_unref (newcaps);
|
|
||||||
return NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
|
Loading…
x
Reference in New Issue
Block a user