Solve the problem that the RTSP extension element cannot be found-detailed description of gstreamer element Registration
Source: Internet
Author: User
When debugging rtspgoogle RTSP extension this time, we found the following problems:
You can see this element during the GST-inspect operation. However, when rtspsrc initializes the extension list, this element is not found. As a result, videos on YouTube cannot be played (because the extension of rtspgoogle does not play a role)
The reason is as follows:
Rtspsrc calls ststst_rtsp_ext_list_init in class_init. The class_init of each element is called at the time of stst_init. Therefore, if the class_init of rtspsrc is not executed yet, the rtspgoogle element cannot be found by gstreamer, so rtspsrc cannot find the extension of rtspgoogle.
Therefore, in gstrtsp. C, the order of calling the stst_element_register operation must be changed. Put the maid rtspgoogle in front of the maid rtspsrc. The class_init function of these elements is called in sequence according to the sequence of the call of stst_element_register. Fortunately, rtspgoogle and rtspsrc are registered in the same file, so you can configure them by changing the code order. If the two elements are in different packages, this order is hard to say. In this case, it is best to put the code "stst_rtsp_ext_list_init" in the instance_init of the element to do the insurance. At this time, all the elements have been initialized and can be retrieved by gstreamer.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service