gst/rtsp/gstrtpdec.*: Added signal for backwards compat.

Original commit message from CVS:
* gst/rtsp/gstrtpdec.c: (gst_rtp_dec_class_init):
* gst/rtsp/gstrtpdec.h:
Added signal for backwards compat.
This commit is contained in:
Wim Taymans 2007-05-21 10:03:42 +00:00
parent 4bd1140630
commit 321a79d484
3 changed files with 14 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2007-05-21 Wim Taymans <wim@fluendo.com>
* gst/rtsp/gstrtpdec.c: (gst_rtp_dec_class_init):
* gst/rtsp/gstrtpdec.h:
Added signal for backwards compat.
2007-05-21 Sebastian Dröge <slomo@circular-chaos.org> 2007-05-21 Sebastian Dröge <slomo@circular-chaos.org>
Patch by: René Stadler <mail at renestadler dot de> Patch by: René Stadler <mail at renestadler dot de>

View file

@ -77,6 +77,7 @@ GST_ELEMENT_DETAILS ("RTP Decoder",
enum enum
{ {
SIGNAL_REQUEST_PT_MAP, SIGNAL_REQUEST_PT_MAP,
SIGNAL_CLEAR_PT_MAP,
LAST_SIGNAL LAST_SIGNAL
}; };
@ -288,6 +289,11 @@ gst_rtp_dec_class_init (GstRTPDecClass * g_class)
NULL, NULL, gst_rtp_dec_marshal_BOXED__UINT_UINT, GST_TYPE_CAPS, 2, NULL, NULL, gst_rtp_dec_marshal_BOXED__UINT_UINT, GST_TYPE_CAPS, 2,
G_TYPE_UINT, G_TYPE_UINT); G_TYPE_UINT, G_TYPE_UINT);
gst_rtp_dec_signals[SIGNAL_CLEAR_PT_MAP] =
g_signal_new ("clear-pt-map", G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRTPDecClass, clear_pt_map),
NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0, G_TYPE_NONE);
gstelement_class->provide_clock = gstelement_class->provide_clock =
GST_DEBUG_FUNCPTR (gst_rtp_dec_provide_clock); GST_DEBUG_FUNCPTR (gst_rtp_dec_provide_clock);
gstelement_class->change_state = GST_DEBUG_FUNCPTR (gst_rtp_dec_change_state); gstelement_class->change_state = GST_DEBUG_FUNCPTR (gst_rtp_dec_change_state);

View file

@ -70,6 +70,8 @@ struct _GstRTPDecClass {
/* get the caps for pt */ /* get the caps for pt */
GstCaps* (*request_pt_map) (GstRTPDec *rtpdec, guint session, guint pt); GstCaps* (*request_pt_map) (GstRTPDec *rtpdec, guint session, guint pt);
void (*clear_pt_map) (GstRTPDec *rtpdec);
}; };
GType gst_rtp_dec_get_type(void); GType gst_rtp_dec_get_type(void);