Added a patch for ISO C90 compatibility.
This commit is contained in:
parent
678edf17cc
commit
401cc94485
2 changed files with 60 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
$NetBSD: distinfo,v 1.2 2006/01/25 19:52:47 wiz Exp $
|
||||
$NetBSD: distinfo,v 1.3 2006/01/29 09:19:42 rillig Exp $
|
||||
|
||||
SHA1 (gst-plugins-base-0.10.2.tar.bz2) = e9b5b3943b58dfeaeda290206a59cffbf74d0c74
|
||||
RMD160 (gst-plugins-base-0.10.2.tar.bz2) = c3259792839d7277c2e8a8d6b34545cf845e2e19
|
||||
Size (gst-plugins-base-0.10.2.tar.bz2) = 1038764 bytes
|
||||
SHA1 (patch-ab) = 94492cdfab49737e419b39c11b65d76f9bee2e3b
|
||||
SHA1 (patch-ac) = 415192264d501d993ef6401d1ebb520aa99256fc
|
||||
|
|
58
multimedia/gst-plugins0.10-base/patches/patch-ac
Normal file
58
multimedia/gst-plugins0.10-base/patches/patch-ac
Normal file
|
@ -0,0 +1,58 @@
|
|||
$NetBSD: patch-ac,v 1.1 2006/01/29 09:19:43 rillig Exp $
|
||||
|
||||
Keywords: c90
|
||||
|
||||
--- gst-libs/gst/rtp/gstbasertpdepayload.c.orig 2005-12-20 12:36:56.000000000 +0100
|
||||
+++ gst-libs/gst/rtp/gstbasertpdepayload.c 2006-01-29 10:01:08.000000000 +0100
|
||||
@@ -173,12 +173,13 @@ static gboolean
|
||||
gst_base_rtp_depayload_setcaps (GstPad * pad, GstCaps * caps)
|
||||
{
|
||||
GstBaseRTPDepayload *filter;
|
||||
+ GstBaseRTPDepayloadClass *bclass;
|
||||
|
||||
filter = GST_BASE_RTP_DEPAYLOAD (gst_pad_get_parent (pad));
|
||||
g_return_val_if_fail (filter != NULL, FALSE);
|
||||
g_return_val_if_fail (GST_IS_BASE_RTP_DEPAYLOAD (filter), FALSE);
|
||||
|
||||
- GstBaseRTPDepayloadClass *bclass = GST_BASE_RTP_DEPAYLOAD_GET_CLASS (filter);
|
||||
+ bclass = GST_BASE_RTP_DEPAYLOAD_GET_CLASS (filter);
|
||||
|
||||
if (bclass->set_caps)
|
||||
return bclass->set_caps (filter, caps);
|
||||
@@ -241,6 +242,7 @@ gst_base_rtp_depayload_add_to_queue (Gst
|
||||
GstBuffer * in)
|
||||
{
|
||||
GQueue *queue = filter->queue;
|
||||
+ int i;
|
||||
|
||||
/* our first packet, just push it */
|
||||
QUEUE_LOCK (filter);
|
||||
@@ -255,7 +257,7 @@ gst_base_rtp_depayload_add_to_queue (Gst
|
||||
queueseq = gst_rtp_buffer_get_seq (GST_BUFFER (g_queue_peek_head (queue)));
|
||||
|
||||
/* look for right place to insert it */
|
||||
- int i = 0;
|
||||
+ i = 0;
|
||||
|
||||
while (seqnum > queueseq) {
|
||||
gpointer data;
|
||||
@@ -350,6 +352,8 @@ gst_base_rtp_depayload_queue_release (Gs
|
||||
GQueue *queue = filter->queue;
|
||||
guint32 headts, tailts;
|
||||
GstBaseRTPDepayloadClass *bclass;
|
||||
+ gfloat q_size_secs;
|
||||
+ guint maxtsunits;
|
||||
|
||||
if (g_queue_is_empty (queue))
|
||||
return;
|
||||
@@ -359,8 +363,8 @@ gst_base_rtp_depayload_queue_release (Gs
|
||||
*/
|
||||
GST_DEBUG_OBJECT (filter, "clockrate %d, queue_delay %d", filter->clock_rate,
|
||||
filter->queue_delay);
|
||||
- gfloat q_size_secs = (gfloat) filter->queue_delay / 1000;
|
||||
- guint maxtsunits = (gfloat) filter->clock_rate * q_size_secs;
|
||||
+ q_size_secs = (gfloat) filter->queue_delay / 1000;
|
||||
+ maxtsunits = (gfloat) filter->clock_rate * q_size_secs;
|
||||
|
||||
QUEUE_LOCK (filter);
|
||||
headts =
|
Loading…
Reference in a new issue