summaryrefslogtreecommitdiffstats
path: root/ext/tarkin/gsttarkinenc.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/tarkin/gsttarkinenc.c')
-rw-r--r--ext/tarkin/gsttarkinenc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/tarkin/gsttarkinenc.c b/ext/tarkin/gsttarkinenc.c
index 4babb7e6..3d3128a4 100644
--- a/ext/tarkin/gsttarkinenc.c
+++ b/ext/tarkin/gsttarkinenc.c
@@ -130,8 +130,8 @@ gst_tarkinenc_sinkconnect (GstPad *pad, GstCaps *caps)
tarkinenc->layer[0].bitstream_len = tarkinenc->bitrate;
tarkinenc->layer[0].a_moments = tarkinenc->a_moments;
tarkinenc->layer[0].s_moments = tarkinenc->s_moments;
- tarkinenc->layer[0].width = gst_caps_get_int (caps, "width");
- tarkinenc->layer[0].height = gst_caps_get_int (caps, "height");
+ gst_caps_get_int (caps, "width", &tarkinenc->layer[0].width);
+ gst_caps_get_int (caps, "height", &tarkinenc->layer[0].height);
tarkinenc->layer[0].format = TARKIN_RGB24;
tarkinenc->layer[0].frames_per_buf = TARKIN_RGB24;