home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Support
Watch / Listen Media
Television (MyTV frontend and TV-Server)
No video/audio detected
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Stepko" data-source="post: 201554" data-attributes="member: 57342"><p>Sure, but I don´t think that will help you much. I did only one change in solution MPFileWriter, MPFileWriter.cpp.</p><p>Original code:</p><p>[CODE]</p><p>CBasePin * CDumpFilter::GetPin(int n)</p><p>{</p><p> if (n == 0) {</p><p> return m_pDump->m_pPin;</p><p> } else {</p><p> return NULL;</p><p> }</p><p>}[/CODE]</p><p></p><p>Changed:</p><p>[CODE]</p><p>CBasePin * CDumpFilter::GetPin(int n)</p><p>{</p><p> Sleep(10);</p><p> if (n == 0) {</p><p> return m_pDump->m_pPin;</p><p> } else {</p><p> return NULL;</p><p> }</p><p>}[/CODE]</p><p></p><p>Yapp, thats all, waiting for 10ms fixed this for me. </p><p>I found out that function "STDMETHODIMP CDumpInputPin::Receive(IMediaSample *pSample)" doesn´t get called when the error occurs. I think thats the reason for the timeshiftfile to stay at 0 bytes. So I placed a LogDebug in "GetPin(int n)" and with that log-output the problem was solved. Because I didn´t want the log file to become too big I replaced LogDebug with the Sleep command, and it still works. Thats why I think it is kind of a timing problem.</p><p></p><p>Hope you find a solution for everyone</p><p>Stepko</p></blockquote><p></p>
[QUOTE="Stepko, post: 201554, member: 57342"] Sure, but I don´t think that will help you much. I did only one change in solution MPFileWriter, MPFileWriter.cpp. Original code: [CODE] CBasePin * CDumpFilter::GetPin(int n) { if (n == 0) { return m_pDump->m_pPin; } else { return NULL; } }[/CODE] Changed: [CODE] CBasePin * CDumpFilter::GetPin(int n) { Sleep(10); if (n == 0) { return m_pDump->m_pPin; } else { return NULL; } }[/CODE] Yapp, thats all, waiting for 10ms fixed this for me. I found out that function "STDMETHODIMP CDumpInputPin::Receive(IMediaSample *pSample)" doesn´t get called when the error occurs. I think thats the reason for the timeshiftfile to stay at 0 bytes. So I placed a LogDebug in "GetPin(int n)" and with that log-output the problem was solved. Because I didn´t want the log file to become too big I replaced LogDebug with the Sleep command, and it still works. Thats why I think it is kind of a timing problem. Hope you find a solution for everyone Stepko [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
Watch / Listen Media
Television (MyTV frontend and TV-Server)
No video/audio detected
Contact us
RSS
Top
Bottom