Note that there are some explanatory texts on larger screens.

plurals
  1. POEnqueue in Phonon no longer working
    primarykey
    data
    text
    <p>After a recent software update to the phonon libraries, I've noticed that a media playing application that I wrote is no longer able to loop tracks. The code in question is below. The first track is set, and once it nears completion it is set to play again.</p> <pre><code>void Alarm::Start(bool useCustom) { if(useCustom) { media-&gt;setCurrentSource(Phonon::MediaSource(this-&gt;_CustPath)); this-&gt;_UsingCustomPath=true; }else{ FileIO::ExtractAudio(); media-&gt;setCurrentSource(Phonon::MediaSource(this-&gt;_DefaultPath)); this-&gt;_UsingCustomPath=false; } media-&gt;play(); connect(media,SIGNAL(aboutToFinish()),this,SLOT(RepeatAllTheThings())); this-&gt;_isPlaying=true; } void Alarm::RepeatAllTheThings() { if(this-&gt;_UsingCustomPath) { media-&gt;enqueue(this-&gt;_CustPath); }else{ media-&gt;enqueue(this-&gt;_DefaultPath); } } </code></pre> <p>After running through the debugger a few times I noticed this message:</p> <pre><code>"Ignoring source as no aboutToFinish handling is in progress" </code></pre> <p>A quick google search doesn't tell much about this message. It looks like a check for a private variable (that I dont have access to) has been added (<a href="https://build.opensuse.org/package/view_file?file=PHONON_GSTREAMER_46_BRANCH.diff&amp;package=phonon-backend-gstreamer-0_10&amp;project=openSUSE:12.2%3aARM&amp;rev=161df664f97c84f710407d66c90b706f" rel="nofollow">a diff of the file</a>)</p> <p>Does anyone know if I just discovered a new bug in phonon, or am I some how using the enqueue method incorrectly? </p> <p>EDIT: The code above only fails about 1/2 the time. Very confused. Currently running phonon-gstreamer 4.6.3</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload