CVS Root: /cvs/gstreamer
Module: gst-openmax
Changes by: felipec
Date: Thu Nov 20 2008 16:32:37 UTC
Log message:
Fix warnings in jpegenc.
Modified files:
omx : gstomx_jpegenc.c
Links:
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-openmax/omx/gstomx_jpegenc.c.diff?r1=1.1&r2=1.2
====Begin Diffs====
Index: gstomx_jpegenc.c
===================================================================
RCS file: /cvs/gstreamer/gst-openmax/omx/gstomx_jpegenc.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- gstomx_jpegenc.c 20 Nov 2008 16:16:55 -0000 1.1
+++ gstomx_jpegenc.c 20 Nov 2008 16:32:22 -0000 1.2
@@ -24,7 +24,7 @@
#include "gstomx.h"
#include <string.h>
-
+#include <stdlib.h>
#include <stdbool.h>
#define OMX_COMPONENT_NAME "OMX.st.image_encoder.jpeg"
@@ -183,7 +183,7 @@
GstStructure *structure;
GstOmxBaseFilter *omx_base;
GOmxCore *gomx;
- OMX_COLOR_FORMATTYPE color_format;
+ OMX_COLOR_FORMATTYPE color_format = OMX_COLOR_FormatYUV420Planar;
gint width = 0;
gint height = 0;
@@ -247,7 +247,6 @@
{
GstOmxJpegEnc *self;
- gint rate, channels;
self = GST_OMX_JPEGENC (omx_base);
gomx = (GOmxCore *) omx_base->gomx;
@@ -258,7 +257,6 @@
OMX_PARAM_PORTDEFINITIONTYPE *param;
OMX_COLOR_FORMATTYPE color_format;
gint width, height;
- guint framerate;
param = calloc (1, sizeof (OMX_PARAM_PORTDEFINITIONTYPE));
param->nSize = sizeof (OMX_PARAM_PORTDEFINITIONTYPE);
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.