#define RAW_VIDEO_CAPS \
- "video/x-raw-yuv; " \
- "video/x-raw-rgb; " \
- "video/x-raw-gray"
+ "video/x-raw"
#define RAW_AUDIO_CAPS \
- "audio/x-raw-int; " \
- "audio/x-raw-float"
+ "audio/x-raw"
static GstStaticCaps raw_video_caps = GST_STATIC_CAPS (RAW_VIDEO_CAPS);
static GstStaticCaps raw_audio_caps = GST_STATIC_CAPS (RAW_AUDIO_CAPS);
static gboolean
payloader_filter (GstPluginFeature * feature, FilterData * data)
{
- gboolean res;
const gchar *klass;
GstElementFactory *fact;
GList **list = NULL;
factory->use_gstpay = DEFAULT_USE_GSTPAY;
/* get the feature list using the filter */
- gst_default_registry_feature_filter ((GstPluginFeatureFilter)
+ gst_registry_feature_filter (gst_registry_get (), (GstPluginFeatureFilter)
payloader_filter, FALSE, &data);
/* sort */
factory->demuxers =
static GstElementFactory *
find_payloader (GstRTSPMediaFactoryURI * urifact, GstCaps * caps)
{
- GList *list, *tmp;
+ GList *list;
GstElementFactory *factory = NULL;
/* first find a demuxer that can link */
autoplug_continue_cb (GstElement * uribin, GstPad * pad, GstCaps * caps,
GstElement * element)
{
- GList *list, *tmp;
FactoryData *data;
GstElementFactory *factory;
- gboolean res;
GST_DEBUG ("found pad %s:%s of caps %" GST_PTR_FORMAT,
GST_DEBUG_PAD_NAME (pad), caps);
/* get pad caps first, then call get_caps, then fail */
if ((caps = gst_pad_get_current_caps (pad)) == NULL)
- if ((caps = gst_pad_get_caps (pad, NULL)) == NULL)
+ if ((caps = gst_pad_query_caps (pad, NULL)) == NULL)
goto no_caps;
/* check for raw caps */
if (gst_caps_can_intersect (caps, urifact->raw_vcaps)) {
/* we have raw video caps, insert converter */
- convert = gst_element_factory_make ("ffmpegcolorspace", NULL);
+ convert = gst_element_factory_make ("videoconvert", NULL);
} else if (gst_caps_can_intersect (caps, urifact->raw_acaps)) {
/* we have raw audio caps, insert converter */
convert = gst_element_factory_make ("audioconvert", NULL);
/* continue with new pad and caps */
pad = gst_element_get_static_pad (convert, "src");
if ((caps = gst_pad_get_current_caps (pad)) == NULL)
- if ((caps = gst_pad_get_caps (pad, NULL)) == NULL)
+ if ((caps = gst_pad_query_caps (pad, NULL)) == NULL)
goto no_caps;
}