<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:16px">I realize that setting the pipe to the "ready" state first and change the file location is the good maner<div class="qtdSeparateBR"><br><br></div><div style="display: block;" id="yui_3_16_0_1_1423640517325_7960" class="yahoo_quoted"><div id="yui_3_16_0_1_1423640517325_7959" style="font-family: times new roman, new york, times, serif; font-size: 16px;"><div id="yui_3_16_0_1_1423640517325_7958" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"><div id="yui_3_16_0_1_1423640517325_8028" class="y_msg_container"><div id="yiv7949856685"><div id="yui_3_16_0_1_1423640517325_8027"><div id="yui_3_16_0_1_1423640517325_8026" style="color:#000;background-color:#fff;font-family:times new roman, new york, times, serif;font-size:16px;"><div id="yui_3_16_0_1_1423640517325_8936" dir="ltr">because in the "ready" state there are no elements specifics for the media streaming like "pad", specifics "caps" for the meadia etc. In this state alle the general elements are loaded...so put your pipe in the "ready" state first, do the change on the "location" property and set again the pipe to the "play" or "paused" state.<br clear="none"></div><div class="yiv7949856685signature" id="yiv7949856685yui_3_16_0_1_1423640517325_3521"><div id="yiv7949856685yui_3_16_0_1_1423640517325_3520"><div id="yiv7949856685yui_3_16_0_1_1423640517325_3522" style="font-family:arial, helvetica, clean, sans-serif;"><span style="font-size:13px;"><br clear="none"></span></div><div id="yiv7949856685yui_3_16_0_1_1423640517325_3519"><br clear="none"></div></div></div> <div id="yui_3_16_0_1_1423640517325_8025" class="yiv7949856685qtdSeparateBR"><br clear="none"><br clear="none"></div><div id="yui_3_16_0_1_1423640517325_8032" class="yiv7949856685yahoo_quoted" style="display:block;"> <div id="yui_3_16_0_1_1423640517325_8031" style="font-family:times new roman, new york, times, serif;font-size:16px;"> <div id="yui_3_16_0_1_1423640517325_8030" style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div class="yiv7949856685yqt3029072202" id="yiv7949856685yqtfd84209"><div id="yui_3_16_0_1_1423640517325_8938" dir="ltr"> <font id="yui_3_16_0_1_1423640517325_8937" face="Arial" size="2"> Le Mercredi 11 février 2015 3h06, Huang Weller (CM/EPF1-CN) <Weller.Huang@cn.bosch.com> a écrit :<br clear="none"> </font> </div>  <br clear="none"><br clear="none"> <div id="yui_3_16_0_1_1423640517325_8029" class="yiv7949856685y_msg_container"><br clear="none">Hi,<br clear="none"><br clear="none">We are using the gstreamer 1.42. And we reuse the mediaplayer which works well under gstreamer 0.10.<br clear="none">We already follow the porting guide and did necessary changes to our code. And the media player is working.<br clear="none">BUT,<br clear="none">we found that the fd at folder /proc/TEST.OUT_PID/fd keep increasing during play the music one after one(in the mediaplayer, the pipe will be destroyed before changing music file and be recreated a new pipeline for play new file).<br clear="none">we already did some investigation, for example, try to use one pipe for all music playback but not recreate it everytime.<br clear="none">but it is not ok to change the file location on fly. You can enable the code in line 702 of gst-test.c to enable <br clear="none">this test mode. The test code will recreate the pipeline when play new file in default.<br clear="none"><br clear="none">so, for this issue, after 30mins, test with thousands 4 seconds music files with our media player, our system's mem cache will be occupied by it and trigger the OOM.<br clear="none"><br clear="none">I have below questions, <br clear="none">1.Is it a bug for gstreamer ?<br clear="none">2. how to change the file location when using decodebin ? I know the playbin can change the file location on fly.<br clear="none">Because my test file a very small, so I change the file location after got EOS.Now I change the file location in this way:<br clear="none">Set pipeline to ready -> remove filesrc bin from pipeline -> set null to  filesrc -> recreate filesrc -> set new file location->add filesrc bin to pipeline -> pad line with decodebin -> set pipeline to playing state.<br clear="none"><br clear="none">But I can not hear anything on this way.<br clear="none"><br clear="none"><br clear="none">_______________________________________________<br clear="none">gstreamer-devel mailing list<br clear="none"><a id="yui_3_16_0_1_1423640517325_8033" rel="nofollow" shape="rect" ymailto="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br clear="none"><a id="yui_3_16_0_1_1423640517325_8946" rel="nofollow" shape="rect" target="_blank" href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br clear="none"><br clear="none"><br clear="none"></div>  </div></div><div class="yiv7949856685yqt3029072202" id="yiv7949856685yqtfd73665"> </div></div><div class="yiv7949856685yqt3029072202" id="yiv7949856685yqtfd59063">  </div></div><div class="yiv7949856685yqt3029072202" id="yiv7949856685yqtfd49430"> </div></div></div></div><br><br></div>  </div> </div>  </div> </div></body></html>