# GstCompat

Please do not use these in new code. These symbols are only available by defining GST_DISABLE_DEPRECATED. This can be done in CFLAGS for compiling old code.

## Function Macros

### gst_buffer_new_and_alloc

    #define gst_buffer_new_and_alloc(s)            gst_buffer_new_allocate(NULL, s, NULL)

### gst_element_factory_get_author

    #define gst_element_factory_get_author(f)      gst_element_factory_get_metadata(f, GST_ELEMENT_METADATA_AUTHOR)

### gst_element_factory_get_description

    #define gst_element_factory_get_description(f) gst_element_factory_get_metadata(f, GST_ELEMENT_METADATA_DESCRIPTION)

### gst_element_factory_get_documentation_uri

    #define gst_element_factory_get_documentation_uri(f)  gst_element_factory_get_metadata(f, GST_ELEMENT_METADATA_DOC_URI)

### gst_element_factory_get_icon_name

    #define gst_element_factory_get_icon_name(f)   gst_element_factory_get_metadata(f, GST_ELEMENT_METADATA_ICON_NAME)

### gst_element_factory_get_klass

    #define gst_element_factory_get_klass(f)       gst_element_factory_get_metadata(f, GST_ELEMENT_METADATA_KLASS)

### gst_element_factory_get_longname

    #define gst_element_factory_get_longname(f)    gst_element_factory_get_metadata(f, GST_ELEMENT_METADATA_LONGNAME)

### gst_message_new_duration

    #define gst_message_new_duration(src,fmt,dur) \
        gst_message_new_duration_changed(src)

### gst_message_parse_duration

    #define gst_message_parse_duration(msg,fmt,dur) \
    G_STMT_START { \
      GstFormat *p_fmt = fmt; \
      gint64 *p_dur = dur; \
      if (p_fmt) \
        *p_fmt = GST_FORMAT_TIME; \
      if (p_dur) \
        *p_dur = GST_CLOCK_TIME_NONE; \
    } G_STMT_END

### gst_pad_get_caps_reffed

    #define gst_pad_get_caps_reffed(p)             gst_pad_get_caps(p)

### gst_pad_peer_get_caps_reffed

    #define gst_pad_peer_get_caps_reffed(p)        gst_pad_peer_get_caps(p)

### gst_tag_list_free

    #define gst_tag_list_free(taglist)    gst_tag_list_unref(taglist)

## Constants

### GST_BUFFER_TIMESTAMP

    #define GST_BUFFER_TIMESTAMP          GST_BUFFER_PTS

### GST_BUFFER_TIMESTAMP_IS_VALID

    #define GST_BUFFER_TIMESTAMP_IS_VALID GST_BUFFER_PTS_IS_VALID

### GST_MESSAGE_DURATION

    #define GST_MESSAGE_DURATION GST_MESSAGE_DURATION_CHANGED

### gst_adapter_prev_timestamp

    #define gst_adapter_prev_timestamp    gst_adapter_prev_pts

### gst_element_class_set_details_simple

    #define gst_element_class_set_details_simple  gst_element_class_set_metadata

The results of the search are