gst/avi/gstavidemux.c: Declare variables at beginning of block and make gcc-2.95 happy
Original commit message from CVS: * gst/avi/gstavidemux.c: (gst_avi_demux_invert): Declare variables at beginning of block and make gcc-2.95 happy (fixes # 167482, patch by Gergely Nagy). * gst/tcp/gsttcpclientsrc.c: * gst/tcp/gsttcpclientsrc.h: Move some includes into the header, so that struct sockaddr_in is defined when it should be defined on FreeBSD as well (fixes #167483). * gst/tcp/gsttcpserversrc.c: (gst_tcpserversrc_init_receive): Don't pass uninitialised values to setsockopt() here either.
This commit is contained in:
parent
2ec02a4399
commit
ae541a6e16
15
ChangeLog
15
ChangeLog
@ -1,3 +1,18 @@
|
|||||||
|
2005-02-17 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
|
* gst/avi/gstavidemux.c: (gst_avi_demux_invert):
|
||||||
|
Declare variables at beginning of block and make gcc-2.95 happy
|
||||||
|
(fixes # 167482, patch by Gergely Nagy).
|
||||||
|
|
||||||
|
* gst/tcp/gsttcpclientsrc.c:
|
||||||
|
* gst/tcp/gsttcpclientsrc.h:
|
||||||
|
Move some includes into the header, so that struct sockaddr_in is
|
||||||
|
defined when it should be defined on FreeBSD as well (fixes
|
||||||
|
#167483).
|
||||||
|
|
||||||
|
* gst/tcp/gsttcpserversrc.c: (gst_tcpserversrc_init_receive):
|
||||||
|
Don't pass uninitialised values to setsockopt() here either.
|
||||||
|
|
||||||
2005-02-17 Luca Ognibene <luogni at tin dot it>
|
2005-02-17 Luca Ognibene <luogni at tin dot it>
|
||||||
|
|
||||||
Reviewed by: Tim-Philipp Müller <tim at centricular dot net>
|
Reviewed by: Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
@ -2005,10 +2005,11 @@ swap_line (guint8 * d1, guint8 * d2, guint8 * tmp, gint bytes)
|
|||||||
static GstBuffer *
|
static GstBuffer *
|
||||||
gst_avi_demux_invert (avi_stream_context * stream, GstBuffer * buf)
|
gst_avi_demux_invert (avi_stream_context * stream, GstBuffer * buf)
|
||||||
{
|
{
|
||||||
buf = gst_buffer_copy_on_write (buf);
|
|
||||||
gint y, h = stream->height, w = stream->width;
|
gint y, h = stream->height, w = stream->width;
|
||||||
guint8 *tmp = g_malloc (w);
|
guint8 *tmp = g_malloc (w);
|
||||||
|
|
||||||
|
buf = gst_buffer_copy_on_write (buf);
|
||||||
|
|
||||||
for (y = 0; y < h / 2; y++) {
|
for (y = 0; y < h / 2; y++) {
|
||||||
swap_line (GST_BUFFER_DATA (buf) + w * y,
|
swap_line (GST_BUFFER_DATA (buf) + w * y,
|
||||||
GST_BUFFER_DATA (buf) + w * (h - 1 - y), tmp, w);
|
GST_BUFFER_DATA (buf) + w * (h - 1 - y), tmp, w);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user