summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/qcam/gstqcamsrc.c2
-rw-r--r--sys/v4l2/gstv4l2src.c16
2 files changed, 9 insertions, 9 deletions
diff --git a/sys/qcam/gstqcamsrc.c b/sys/qcam/gstqcamsrc.c
index 4f213f53..1312bb43 100644
--- a/sys/qcam/gstqcamsrc.c
+++ b/sys/qcam/gstqcamsrc.c
@@ -249,7 +249,7 @@ gst_qcamsrc_get (GstPad *pad)
qc_set (qcamsrc->qcam);
if (!GST_PAD_CAPS (pad)) {
- gst_pad_try_set_caps (pad, gst_caps2_new_simple("video/x-raw-yuv",
+ gst_pad_try_set_caps (pad, gst_caps_new_simple("video/x-raw-yuv",
"format", GST_TYPE_FOURCC, "I420",
"width", G_TYPE_INT, qcamsrc->qcam->width / scale,
"height", G_TYPE_INT, qcamsrc->qcam->height / scale,
diff --git a/sys/v4l2/gstv4l2src.c b/sys/v4l2/gstv4l2src.c
index 35da2078..c560e00e 100644
--- a/sys/v4l2/gstv4l2src.c
+++ b/sys/v4l2/gstv4l2src.c
@@ -70,8 +70,8 @@ static gboolean gst_v4l2src_srcconvert (GstPad *pad,
GstFormat *dest_format,
gint64 *dest_value);
static GstPadLinkReturn gst_v4l2src_srcconnect (GstPad *pad,
- const GstCaps2 *caps);
-static GstCaps2 * gst_v4l2src_getcaps (GstPad *pad);
+ const GstCaps *caps);
+static GstCaps * gst_v4l2src_getcaps (GstPad *pad);
static GstData * gst_v4l2src_get (GstPad *pad);
/* get/set params */
@@ -644,7 +644,7 @@ gst_v4l2_caps_to_v4l2fourcc (GstV4l2Src *v4l2src,
static GstPadLinkReturn
gst_v4l2src_srcconnect (GstPad *pad,
- const GstCaps2 *vscapslist)
+ const GstCaps *vscapslist)
{
GstV4l2Src *v4l2src;
GstV4l2Element *v4l2element;
@@ -655,7 +655,7 @@ gst_v4l2src_srcconnect (GstPad *pad,
v4l2src = GST_V4L2SRC(gst_pad_get_parent (pad));
v4l2element = GST_V4L2ELEMENT(v4l2src);
- structure = gst_caps2_get_nth_cap (vscapslist, 0);
+ structure = gst_caps_get_structure (vscapslist, 0);
/* clean up if we still haven't cleaned up our previous
* capture session */
@@ -685,11 +685,11 @@ gst_v4l2src_srcconnect (GstPad *pad,
}
-static GstCaps2 *
+static GstCaps *
gst_v4l2src_getcaps (GstPad *pad)
{
GstV4l2Src *v4l2src = GST_V4L2SRC(gst_pad_get_parent (pad));
- GstCaps2 *caps;
+ GstCaps *caps;
gint i;
struct v4l2_fmtdesc *format;
int min_w, max_w, min_h, max_h;
@@ -699,7 +699,7 @@ gst_v4l2src_getcaps (GstPad *pad)
}
/* build our own capslist */
- caps = gst_caps2_new_empty();
+ caps = gst_caps_new_empty();
for (i=0;i<g_list_length(v4l2src->formats);i++) {
GstStructure *structure;
@@ -722,7 +722,7 @@ gst_v4l2src_getcaps (GstPad *pad)
"framerate", GST_TYPE_DOUBLE_RANGE, 0, G_MAXDOUBLE,
NULL);
- gst_caps2_append_cap (caps, structure);
+ gst_caps_append_structure (caps, structure);
}
return caps;