Here is the problem code :
it is located in xinewidget ... and xine reports an unhandled stream ...
and this function is called in the play function of kaffeine ... so while 
playing a video
it endlessly try's to install a codec .. maybee we shoud store a already 
installed value 
in the kaffeine settings so that unhandledStreamsPresent() doesnt return False 
if the codecs are already installed ....

Could anyone send me the patched sources of kaffeine because i did not
know how to patch the original sources ...

bool KXineWidget::unhandledStreamsPresent()
{
unsigned int hasAudio = xine_get_stream_info(m_xineStream, 
XINE_STREAM_INFO_HAS_AUDIO);
unsigned int hasVideo = xine_get_stream_info(m_xineStream, 
XINE_STREAM_INFO_HAS_VIDEO);

        return  (hasAudio && !xine_get_stream_info(m_xineStream, 
XINE_STREAM_INFO_AUDIO_HANDLED)) ||
                (hasVideo && !xine_get_stream_info(m_xineStream, 
XINE_STREAM_INFO_VIDEO_HANDLED));
}

void KXineWidget::slotPlay()
{
        if ((!isXineReady()) || (isQueueEmpty()))
                return;
        }
 
if (unhandledStreamsPresent())
{
                errorOut("No codecs to handle media");
                sendXineError();
                return;
}
}

-- 
[hardy] kaffeine loops on "Codec package is already installed"
https://bugs.launchpad.net/bugs/210303
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to