+2005-06-29 Andy Wingo <wingo@pobox.com>
+
+ * configure.ac (GST_CFLAGS): GCC strikes back!!! Let the build
+ breakage ensue!!!
+
+ * gst/rtsp/gstrtspsrc.c (gst_rtspsrc_loop, gst_rtspsrc_open):
+ Signedness, unused var fixes.
+ (gst_rtspsrc_close): Unused?
+
+ * gst/realmedia/rmdemux.c (re_hexdump_bytes): Unused.
+
+ * gst/law/mulaw-encode.c (gst_mulawenc_chain): Signeness fix.
+
+ * gst/law/alaw-encode.c (alawenc_getcaps): Remove unneeded
+ declarations. Typo (probably crasher) fix.
+
+ * gst/law/mulaw-encode.c (mulawdec_getcaps):
+ * gst/law/mulaw-encode.c (mulawenc_getcaps):
+ * gst/law/alaw-decode.c (alawdec_getcaps): Same crasher fix.
+
+ * gst/goom/gstgoom.c (gst_goom_init): Hook up the event function.
+
+ * gst/effectv/gstwarp.c (gst_warptv_setup): Signedness fix.
+
+ * gst/effectv/gstdice.c (gst_dicetv_draw): Um, deferencing
+ uninitialized pointer not good.
+
+ * gst/videofilter/gstvideoexample.c (plugin_init):
+ * gst/videofilter/Makefile.am (libgstvideoexample_la_LIBADD): Link
+ to libgstvideofilter instead of gst_library_load.
+
+ * gst/alpha/gstalpha.c (gst_alpha_chroma_key_i420)
+ (gst_alpha_chroma_key_ayuv): Signedness fixen.
+
2005-06-29 Wim Taymans <wim@fluendo.com>
* gst/rtsp/gstrtspsrc.c: (gst_rtsp_proto_get_type),
])
])
+GST_CFLAGS="$GST_CFLAGS $GST_ERROR"
+
AC_SUBST(GST_LIBS)
AC_SUBST(GST_CFLAGS)
}
static void
-gst_alpha_chroma_key_ayuv (gchar * src, gchar * dest, gint width, gint height,
+gst_alpha_chroma_key_ayuv (guint8 * src, guint8 * dest, gint width, gint height,
GstAlpha * alpha)
{
gint b_alpha;
/* based on http://www.cs.utah.edu/~michael/chroma/
*/
static void
-gst_alpha_chroma_key_i420 (gchar * src, gchar * dest, gint width, gint height,
+gst_alpha_chroma_key_i420 (guint8 * src, guint8 * dest, gint width, gint height,
GstAlpha * alpha)
{
gint b_alpha;
gint map_x, map_y, map_i;
gint base;
gint dx, dy, di;
- gint video_width = filter->width;
- gint g_cube_bits = filter->g_cube_bits;
- gint g_cube_size = filter->g_cube_size;
+ gint video_width;
+ gint g_cube_bits;
+ gint g_cube_size;
filter = GST_DICETV (videofilter);
src = (guint32 *) s;
g_free (warptv->disttable);
g_free (warptv->offstable);
- warptv->offstable = (guint32 *) g_malloc (height * sizeof (guint32));
+ warptv->offstable = g_malloc (height * sizeof (guint32));
warptv->disttable = g_malloc (width * height * sizeof (guint32));
initSinTable (warptv);
static GstElementStateReturn gst_goom_change_state (GstElement * element);
static GstFlowReturn gst_goom_chain (GstPad * pad, GstBuffer * buffer);
+static gboolean gst_goom_event (GstPad * pad, GstEvent * event);
static GstPadLinkReturn gst_goom_sink_setcaps (GstPad * pad, GstCaps * caps);
static GstPadLinkReturn gst_goom_src_setcaps (GstPad * pad, GstCaps * caps);
gst_element_add_pad (GST_ELEMENT (goom), goom->srcpad);
gst_pad_set_chain_function (goom->sinkpad, gst_goom_chain);
+ gst_pad_set_event_function (goom->sinkpad, gst_goom_event);
gst_pad_set_setcaps_function (goom->sinkpad, gst_goom_sink_setcaps);
gst_pad_set_setcaps_function (goom->srcpad, gst_goom_src_setcaps);
structure = gst_caps_get_structure (othercaps, 0);
orate = gst_structure_get_value (structure, "rate");
ochans = gst_structure_get_value (structure, "channels");
- if (!rate || !chans)
+ if (!orate || !ochans)
goto done;
structure = gst_caps_get_structure (base_caps, 0);
{
GstALawEnc *alawenc;
GstPad *otherpad;
- GstCaps *base_caps, *othercaps, *result;
- GstStructure *structure;
- const GValue *rate, *chans;
+ GstCaps *base_caps, *othercaps;
alawenc = GST_ALAWENC (GST_PAD_PARENT (pad));
structure = gst_caps_get_structure (othercaps, 0);
orate = gst_structure_get_value (structure, "rate");
ochans = gst_structure_get_value (structure, "channels");
- if (!rate || !chans)
+ if (!orate || !ochans)
goto done;
structure = gst_caps_get_structure (base_caps, 0);
structure = gst_caps_get_structure (othercaps, 0);
orate = gst_structure_get_value (structure, "rate");
ochans = gst_structure_get_value (structure, "channels");
- if (!rate || !chans)
+ if (!orate || !ochans)
goto done;
structure = gst_caps_get_structure (base_caps, 0);
structure = gst_caps_get_structure (othercaps, 0);
orate = gst_structure_get_value (structure, "rate");
ochans = gst_structure_get_value (structure, "channels");
- if (!rate || !chans)
+ if (!orate || !ochans)
goto done;
structure = gst_caps_get_structure (base_caps, 0);
GST_BUFFER_TIMESTAMP (outbuf) = GST_BUFFER_TIMESTAMP (buffer);
GST_BUFFER_DURATION (outbuf) = GST_BUFFER_DURATION (buffer);
gst_buffer_set_caps (outbuf, GST_PAD_CAPS (mulawenc->srcpad));
- mulaw_data = (gint8 *) GST_BUFFER_DATA (outbuf);
+ mulaw_data = (guint8 *) GST_BUFFER_DATA (outbuf);
mulaw_encode (linear_data, mulaw_data, GST_BUFFER_SIZE (outbuf));
gst_rtspsrc_stream_setup_rtp (GstRTSPStream * stream, gint * rtpport,
gint * rtcpport)
{
- GstElement *rtpsrc;
GstElementStateReturn ret;
GstRTSPSrc *src;
gint channel;
GList *lstream;
GstRTSPStream *stream;
- GstPadChainFunction chainfunc;
GstPad *outpad = NULL;
guint8 *data;
- gint size;
+ guint size;
do {
GST_DEBUG ("doing reveive");
gchar *new;
gint rtpport, rtcpport;
gchar *trxparams;
- gboolean res;
/* allocate two udp ports */
if (!gst_rtspsrc_stream_setup_rtp (stream, &rtpport, &rtcpport))
}
}
-static gboolean
+G_GNUC_UNUSED static gboolean
gst_rtspsrc_close (GstRTSPSrc * src)
{
RTSPMessage request = { 0 };
g_free (len);
/* header ends here */
g_string_append (str, "\r\n");
- str = g_string_append_len (str, message->body, message->body_size);
+ str =
+ g_string_append_len (str, (gchar *) message->body, message->body_size);
} else {
/* just end headers */
g_string_append (str, "\r\n");
}
done:
- rtsp_message_set_body (msg, body, content_length);
+ rtsp_message_set_body (msg, (guint8 *) body, content_length);
return RTSP_OK;
return RTSP_EINVAL;
g_free (conn);
+
+ return RTSP_OK;
}
libgstvideoexample_la_SOURCES = gstvideoexample.c
libgstvideoexample_la_CFLAGS = $(GST_CFLAGS)
-libgstvideoexample_la_LIBADD =
+libgstvideoexample_la_LIBADD = libgstvideofilter-@GST_MAJORMINOR@.la
libgstvideoexample_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
# libgstvideoflip_la_SOURCES = gstvideoflip.c