From b028fc77a7149476cc207cecd0e58b8eb492a4a5 Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Sun, 11 Jul 2004 11:21:56 +0000 Subject: [PATCH] gst/audioconvert/gstaudioconvert.c (gst_audio_convert_link): For float, "any" caps -> buffer_frames=[0,MAX]. Original commit message from CVS: 2004-07-11 Andy Wingo * gst/audioconvert/gstaudioconvert.c (gst_audio_convert_link): For float, "any" caps -> buffer_frames=[0,MAX]. * gst/interleave/interleave.c (interleave_getcaps): Seems the core doesn't intersect our caps with the template any more. Do it ourselves. (interleave_buffered_loop): Use g_newa instead of malloc/free. --- ChangeLog | 10 ++++++++++ gst/audioconvert/gstaudioconvert.c | 3 ++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 242642f43..12d296583 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2004-07-11 Andy Wingo + + * gst/audioconvert/gstaudioconvert.c (gst_audio_convert_link): For + float, "any" caps -> buffer_frames=[0,MAX]. + + * gst/interleave/interleave.c (interleave_getcaps): Seems the core + doesn't intersect our caps with the template any more. Do it + ourselves. + (interleave_buffered_loop): Use g_newa instead of malloc/free. + 2004-07-09 Wim Taymans * examples/seeking/seek.c: (iterate): diff --git a/gst/audioconvert/gstaudioconvert.c b/gst/audioconvert/gstaudioconvert.c index 28d1df393..8c100669c 100644 --- a/gst/audioconvert/gstaudioconvert.c +++ b/gst/audioconvert/gstaudioconvert.c @@ -403,7 +403,8 @@ gst_audio_convert_link (GstPad * pad, const GstCaps * caps) gst_structure_set (structure, "buffer-frames", G_TYPE_INT, ac_caps.buffer_frames, NULL); } else { - gst_structure_set (structure, "buffer-frames", G_TYPE_INT, 0, NULL); + gst_structure_set (structure, "buffer-frames", GST_TYPE_INT_RANGE, 0, + G_MAXINT, NULL); } } } -- 2.34.1