mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
rtsp-server: don't use deprecated API
This commit is contained in:
parent
290968eb8c
commit
0006ca6d60
1 changed files with 3 additions and 2 deletions
|
@ -134,7 +134,7 @@ payloader_filter (GstPluginFeature * feature, FilterData * data)
|
||||||
|
|
||||||
fact = GST_ELEMENT_FACTORY_CAST (feature);
|
fact = GST_ELEMENT_FACTORY_CAST (feature);
|
||||||
|
|
||||||
klass = gst_element_factory_get_klass (fact);
|
klass = gst_element_factory_get_metadata (fact, GST_ELEMENT_METADATA_KLASS);
|
||||||
|
|
||||||
if (strstr (klass, "Decoder"))
|
if (strstr (klass, "Decoder"))
|
||||||
list = &data->decode;
|
list = &data->decode;
|
||||||
|
@ -314,7 +314,8 @@ find_payloader (GstRTSPMediaFactoryURI * urifact, GstCaps * caps)
|
||||||
|
|
||||||
for (walk = list; walk; walk = walk->next) {
|
for (walk = list; walk; walk = walk->next) {
|
||||||
factory = GST_ELEMENT_FACTORY (walk->data);
|
factory = GST_ELEMENT_FACTORY (walk->data);
|
||||||
klass = gst_element_factory_get_klass (factory);
|
klass = gst_element_factory_get_metadata (factory,
|
||||||
|
GST_ELEMENT_METADATA_KLASS);
|
||||||
if (strstr (klass, "Parser"))
|
if (strstr (klass, "Parser"))
|
||||||
/* caps have parsed=true, so skip this parser to avoid loops */
|
/* caps have parsed=true, so skip this parser to avoid loops */
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in a new issue