<html>
<body>
<div style='font: 12pt sans-serif;'>
<br />
<blockquote class="ukr_editor_quotation" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;">2010/1/21 Sergiy Skuratov <skuratov@ukr.net>:
<br />>
<br />>>> hello!
<br />>>> if use "gst-launch playbin uri=file:///absolut/path/to/file", playbin use
<br />>>> filesrc element by default.
<br />>>> I'm created new file source, e.g. "newfilesrc", and I need that playbin
<br />>>> use
<br />>>> it. how can I do it?
<br />>>
<br />>> In this particular case, you should explain why you want to replace
<br />>> filesrc, and add the features you need to filesrc - or (more likely)
<br />>> we can suggest a better way to accomplish your goals.
<br />>>
<br />>> To more directly answer your question, playbin2 (you should be using
<br />>> this instead of playbin) will select the highest-ranked element that
<br />>> can handle the uri it's given, so you'd give your new element a higher
<br />>> rank than filesrc.
<br />>>
<br />>> Mike
<br />>>
<br />>>
<br />>> I need read files ciphered other my program, and deciph it. no file sourse
<br />>> element, which can do it.
<br />>> really, playbin2 works like I need -- it takes my newfilesrc!
<br />>> so thank you again
<br />
<br />> You should write a decoder element to decode your format then -
<br />> replacing the source element is a bad design. It means you won't be
<br />> able to read your format from elsewhere - this is a pretty basic part
<br />> of designing gstreamer plugins.
<br />
<br />> Mike
<br />
<br /></blockquote>
<br />
<br />I see. but, at this time, I needn't more.
<br />
<br /> Sergiy
<br />
</div></body>
</html>