GstStaticCaps initialization

struct _GstStaticCaps {
  /*< public >*/
  GstCaps *caps;
  const char *string;

  /*< private >*/
  gpointer _gst_reserved[GST_PADDING];
};

#define GST_STATIC_CAPS(string) \
{ \
  /* caps */ NULL, \
  /* string */ string, \
  GST_PADDING_INIT \
}

 

one example

GstStaticCaps scaps = GST_STATIC_CAPS ("audio/x-raw, "

  "format = (string) " GST_AUDIO_NE (S16) ", "
  "layout = (string) interleaved, "
  "channels = (int) 1, " "rate = (int) [ 1, MAX ]")
);

 

Guess you like

Origin www.cnblogs.com/Dream-Chaser/p/10964287.html