#define DEFAULT_SIZE_TIME (0)
-GST_DEBUG_CATEGORY_STATIC (gst_rtp_storage_debug);
+GST_DEBUG_CATEGORY (gst_rtp_storage_debug);
#define GST_CAT_DEFAULT (gst_rtp_storage_debug)
G_DEFINE_TYPE (GstRtpStorage, gst_rtp_storage, GST_TYPE_ELEMENT);
#include "rtpstorage.h"
#include "rtpstoragestream.h"
+#define GST_CAT_DEFAULT (gst_rtp_storage_debug)
+
enum
{
SIGNAL_PACKET_RECOVERED,
#include "rtpstoragestream.h"
+#define GST_CAT_DEFAULT (gst_rtp_storage_debug)
+
static RtpStorageItem *
rtp_storage_item_new (GstBuffer * buffer, guint8 pt, guint16 seq)
{
#include <gst/rtp/gstrtpbuffer.h>
+GST_DEBUG_CATEGORY_EXTERN (gst_rtp_storage_debug);
+
typedef struct {
GstBuffer *buffer;
guint16 seq;
elements_rtpcollision_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
elements_rtpcollision_LDADD = $(GST_PLUGINS_BASE_LIBS) $(GST_NET_LIBS) -lgstrtp-$(GST_API_VERSION) $(GIO_LIBS) $(LDADD)
+elements_rtpstorage_SOURCES = \
+ elements/rtpstorage.c \
+ ../../gst/rtp/gstrtpstorage.c \
+ ../../gst/rtp/rtpstorage.c \
+ ../../gst/rtp/rtpstoragestream.c
+
elements_rtpstorage_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
elements_rtpstorage_LDADD = $(GST_PLUGINS_BASE_LIBS) $(GST_NET_LIBS) -lgstrtp-$(GST_API_VERSION) $(GIO_LIBS) $(LDADD)
#include <gst/check/gstcheck.h>
#include <gst/check/gstharness.h>
+#include "../../../gst/rtp/gstrtpstorage.h"
#include "../../../gst/rtp/rtpstorage.h"
-#include "../../../gst/rtp/rtpstoragestream.c"
-#include "../../../gst/rtp/rtpstorage.c"
#define RTP_CLOCK_RATE (90000)
#define RTP_FRAME_DUR (RTP_CLOCK_RATE / 30)
g_object_get (h->element, "internal-storage", &internal_storage, NULL);
- rtp_storage_do_put_recovered_packet (internal_storage, buffer, pt, ssrc, seq);
+ rtp_storage_put_recovered_packet (internal_storage, buffer, pt, ssrc, seq);
g_object_unref (internal_storage);
}
Suite *s = suite_create ("rtpstorage");
TCase *tc_chain = tcase_create ("general");
+ gst_element_register (NULL, "rtpstorage", GST_RANK_NONE,
+ GST_TYPE_RTP_STORAGE);
+
suite_add_tcase (s, tc_chain);
tcase_add_test (tc_chain, rtpstorage_up_and_down);
tcase_add_test (tc_chain, rtpstorage_resize);
[ 'elements/rtpmux' ],
[ 'elements/rtprtx' ],
[ 'elements/rtpsession' ],
- [ 'elements/rtpstorage' ],
+ [ 'elements/rtpstorage', false, [], ['../../gst/rtp/gstrtpstorage.c',
+ '../../gst/rtp/rtpstorage.c',
+ '../../gst/rtp/rtpstoragestream.c']],
[ 'elements/rtpred' ],
[ 'elements/rtpulpfec' ],
[ 'elements/rtpssrcdemux' ],
foreach t : good_tests
fname = '@0@.c'.format(t.get(0))
test_name = t.get(0).underscorify()
- extra_deps = [ ]
- if t.length() == 3
- extra_deps = t.get(2)
- skip_test = t.get(1)
- elif t.length() == 2
- skip_test = t.get(1)
- else
- skip_test = false
- endif
+ extra_sources = t.get(3, [ ])
+ extra_deps = t.get(2, [ ])
+ skip_test = t.get(1, false)
if not skip_test
env = environment()
env.set('GST_PLUGIN_SYSTEM_PATH_1_0', '')
env.set('GSETTINGS_BACKEND', 'memory')
env.set('GST_REGISTRY', join_paths(meson.current_build_dir(), '@0@.registry'.format(test_name)))
- exe = executable(test_name, fname,
+ exe = executable(test_name, fname, extra_sources,
include_directories : [configinc],
c_args : ['-DHAVE_CONFIG_H=1' ] + test_defines,
dependencies : [libm] + test_deps + extra_deps,