summaryrefslogtreecommitdiffstats
path: root/gst/dtmf/gstrtpdtmfsrc.h
diff options
context:
space:
mode:
Diffstat (limited to 'gst/dtmf/gstrtpdtmfsrc.h')
-rw-r--r--gst/dtmf/gstrtpdtmfsrc.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/gst/dtmf/gstrtpdtmfsrc.h b/gst/dtmf/gstrtpdtmfsrc.h
index 89511508..5438738a 100644
--- a/gst/dtmf/gstrtpdtmfsrc.h
+++ b/gst/dtmf/gstrtpdtmfsrc.h
@@ -26,6 +26,7 @@
#define __GST_RTP_DTMF_SRC_H__
#include <gst/gst.h>
+#include <gst/base/gstbasesrc.h>
#include <gst/rtp/gstrtpbuffer.h>
G_BEGIN_DECLS
@@ -70,7 +71,6 @@ typedef enum _GstRTPDTMFEventType GstRTPDTMFEventType;
struct _GstRTPDTMFSrcEvent {
GstRTPDTMFEventType event_type;
GstRTPDTMFPayload* payload;
- guint32 sent_packets;
};
typedef struct _GstRTPDTMFSrcEvent GstRTPDTMFSrcEvent;
@@ -82,16 +82,17 @@ typedef struct _GstRTPDTMFSrcEvent GstRTPDTMFSrcEvent;
* The opaque #GstRTPDTMFSrc data structure.
*/
struct _GstRTPDTMFSrc {
- GstElement element;
+ GstBaseSrc basesrc;
GstPad* srcpad;
GstSegment segment;
GAsyncQueue* event_queue;
GstRTPDTMFSrcEvent* last_event;
- GstClockID clock_id;
- gboolean task_paused;
+ GstClockID clockid;
+ gboolean paused;
GstClockTime timestamp;
+ GstClockTime start_timestamp;
gboolean first_packet;
gboolean last_packet;
guint32 ts_base;
@@ -106,10 +107,12 @@ struct _GstRTPDTMFSrc {
guint16 interval;
guint16 packet_redundancy;
guint32 clock_rate;
+
+ guint16 redundancy_count;
};
struct _GstRTPDTMFSrcClass {
- GstElementClass parent_class;
+ GstBaseSrcClass parent_class;
};
GType gst_rtp_dtmf_src_get_type (void);