mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 15:27:07 +00:00
[MOVED FROM GST-P-FARSIGHT] Remove the gst 0.9.1 ifdef
20071110051401-3e2dc-1f071d732d64573889977405995692d94b10a0d6.gz
This commit is contained in:
parent
c6187db160
commit
7f0628b5f9
1 changed files with 1 additions and 19 deletions
|
@ -82,14 +82,9 @@ static GstFlowReturn gst_mimenc_chain (GstPad *pad,
|
|||
static GstBuffer* gst_mimenc_create_tcp_header (GstMimEnc *mimenc,
|
||||
gint payload_size);
|
||||
|
||||
#if (GST_VERSION_MAJOR == 0) && (GST_VERSION_MINOR == 9) && (GST_VERSION_MICRO <= 1)
|
||||
static GstElementStateReturn
|
||||
gst_mimenc_change_state (GstElement *element);
|
||||
#else
|
||||
static GstStateChangeReturn
|
||||
gst_mimenc_change_state (GstElement *element,
|
||||
gst_mimenc_change_state (GstElement *element,
|
||||
GstStateChange transition);
|
||||
#endif
|
||||
|
||||
static GstElementClass *parent_class = NULL;
|
||||
|
||||
|
@ -295,15 +290,6 @@ gst_mimenc_create_tcp_header (GstMimEnc *mimenc, gint payload_size)
|
|||
return buf_header;
|
||||
}
|
||||
|
||||
#if (GST_VERSION_MAJOR == 0) && (GST_VERSION_MINOR == 9) && (GST_VERSION_MICRO <= 1)
|
||||
static GstElementStateReturn
|
||||
gst_mimenc_change_state (GstElement * element)
|
||||
{
|
||||
GstMimEnc *mimenc;
|
||||
|
||||
switch (GST_STATE_TRANSITION (element)) {
|
||||
case GST_STATE_READY_TO_NULL:
|
||||
#else
|
||||
static GstStateChangeReturn
|
||||
gst_mimenc_change_state (GstElement * element, GstStateChange transition)
|
||||
{
|
||||
|
@ -311,7 +297,6 @@ gst_mimenc_change_state (GstElement * element, GstStateChange transition)
|
|||
|
||||
switch (transition) {
|
||||
case GST_STATE_CHANGE_READY_TO_NULL:
|
||||
#endif
|
||||
mimenc = GST_MIMENC (element);
|
||||
if (mimenc->enc != NULL) {
|
||||
mimic_close (mimenc->enc);
|
||||
|
@ -325,8 +310,5 @@ gst_mimenc_change_state (GstElement * element, GstStateChange transition)
|
|||
break;
|
||||
}
|
||||
|
||||
#if (GST_VERSION_MAJOR == 0) && (GST_VERSION_MINOR == 9) && (GST_VERSION_MICRO <= 1)
|
||||
return GST_ELEMENT_CLASS (parent_class)->change_state (element);
|
||||
#else
|
||||
return GST_ELEMENT_CLASS (parent_class)->change_state (element, transition);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue