<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>204391</bug_id>
          
          <creation_ts>2009-08-19 12:11:06 +0000</creation_ts>
          <short_desc>Juk skips every second track on windows</short_desc>
          <delta_ts>2011-05-05 03:52:10 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>juk</product>
          <component>general</component>
          <version>unspecified</version>
          <rep_platform>Microsoft Windows</rep_platform>
          <op_sys>Microsoft Windows</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Cyril Brosch">info</reporter>
          <assigned_to name="Scott Wheeler">wheeler</assigned_to>
          <cc>dglent</cc>
    
    <cc>guido-kdebugs</cc>
    
    <cc>kare.sars</cc>
    
    <cc>martin</cc>
    
    <cc>mpyne</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>814892</commentid>
    <comment_count>0</comment_count>
    <who name="Cyril Brosch">info</who>
    <bug_when>2009-08-19 12:11:06 +0000</bug_when>
    <thetext>Version:           3.3 (using KDE 4.3.0)
OS:                MS Windows
Installed from:    MS Windows

No matter whether I start at the beginning of a playlist or in the middle, whether it is to be played linearly or in random mode, whether it is a file from the local drive or a musci player, Juk plays the first song, then switches to the next, but after a second or so it goes on to the next. This third song is played normally, but the next is skipped again and so on.
I can play the skipped songs by pressing the back-button without problems.

As I use Juk on Windows only, I haven&apos;t tested it on Linux and with other files than mp3.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>814893</commentid>
    <comment_count>1</comment_count>
    <who name="Cyril Brosch">info</who>
    <bug_when>2009-08-19 12:17:58 +0000</bug_when>
    <thetext>I forgot: This happens only when Juk goes on to the next track on it&apos;s own (because the song is over), when I press the nex-button while a song is playing, the next song is will be played without skipping.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>815325</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Pyne">mpyne</who>
    <bug_when>2009-08-19 23:16:00 +0000</bug_when>
    <thetext>I take it that Phonon on Windows does not support having two AudioOutput objects simultaneously (JuK does this to support crossfading).  This is why you don&apos;t see it when you click next track manually, as JuK does not crossfade in this case.

AFAIK this is something Phonon is supposed to be able to do (up to the operating system limit at least).  You may want to check Nokia&apos;s Qt development bugtracker (from http://qt.nokia.com/) to see if it is a known bug.  I&apos;ll leave this open for now in case it turns out that JuK is using Phonon incorrectly (but I doubt it ;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>815574</commentid>
    <comment_count>3</comment_count>
    <who name="Cyril Brosch">info</who>
    <bug_when>2009-08-20 13:08:44 +0000</bug_when>
    <thetext>Thanks for clarification, I think a file a bug report to Qt (I didn&apos;t find anything related on their bug tracker).

Do I see correctly, that there is no possibility to disable crossfading in Juk in the meantime?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>815884</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Pyne">mpyne</who>
    <bug_when>2009-08-20 22:46:36 +0000</bug_when>
    <thetext>Disabling crossfading is an option that always hovers right near the top of my priority list without ever quite managing to make it there. :(</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>817128</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Pyne">mpyne</who>
    <bug_when>2009-08-23 04:43:18 +0000</bug_when>
    <thetext>bug 165786 (add option to disable crossfading) is now fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>843780</commentid>
    <comment_count>6</comment_count>
    <who name="Guido Winkelmann">guido-kdebugs</who>
    <bug_when>2009-10-12 04:45:41 +0000</bug_when>
    <thetext>I have nearly the exact same problem under Gentoo Linux (using KDE 4.3.2), except it&apos;s not always every second song that is skipped; it&apos;s more random thn that and not easily reproducable, and also a bit rarer.

This used to happen a lot more often KDE 4.2.x, if that helps.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>848795</commentid>
    <comment_count>7</comment_count>
    <who name="Kåre Särs">kare.sars</who>
    <bug_when>2009-10-22 14:31:24 +0000</bug_when>
    <thetext>Hi,

I have the same problem on Kubuntu (9.04 with PPA packages of KDE 4.3.2)

I applied the patch from bug 165786 and I still get the same result. The only difference is that I do not notice it as easily as I do not hear the beginning of the skipped track when crossfading is turned off.

What I have noticed tho is that I get TagLib warnings in the console:
...
TagLib: MPEG::Header::parse() -- Invalid sample rate.
TagLib: MPEG::Properties::read() -- Page headers were invalid.
...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>848949</commentid>
    <comment_count>8</comment_count>
    <who name="Kåre Särs">kare.sars</who>
    <bug_when>2009-10-22 19:13:31 +0000</bug_when>
    <thetext>I have the same setup on my home computer (except hardware), but there I have no problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>852377</commentid>
    <comment_count>9</comment_count>
    <who name="Martin Koller">martin</who>
    <bug_when>2009-10-29 11:03:08 +0000</bug_when>
    <thetext>I see the same problem with KDE 4.3.2 (Juk 3.3) on openSuse 11.1.
Every second song is skipped after 2 seconds or so.
I see no setting to disable crossfading in Juk.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>852452</commentid>
    <comment_count>10</comment_count>
      <attachid>37944</attachid>
    <who name="Kåre Särs">kare.sars</who>
    <bug_when>2009-10-29 13:51:31 +0000</bug_when>
    <thetext>Created attachment 37944
Patch to fix skipping tracks

This patch fixes it for me.

The problem is that slotFinished() is called from the non-playing Phonon::MediaObject and that results in the skipping.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>852752</commentid>
    <comment_count>11</comment_count>
    <who name="Michael Pyne">mpyne</who>
    <bug_when>2009-10-30 02:03:50 +0000</bug_when>
    <thetext>SVN commit 1042531 by mpyne:

Apply a modified patch by Kåre Särs to try and solve bug 204391 (JuK skips every second
track on Windows).  I guess the Qt Phonon backend on Windows doesn&apos;t emit the aboutToFinish
signal, that&apos;s the only thing I can think of offhand that would cause this.  Either way the
patch doesn&apos;t hurt so in it goes. (This applies to KDE 4.4, will backport).

CCBUG:204391


 M  +6 -1      playermanager.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&amp;revision=1042531</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>852762</commentid>
    <comment_count>12</comment_count>
    <who name="Michael Pyne">mpyne</who>
    <bug_when>2009-10-30 02:50:44 +0000</bug_when>
    <thetext>SVN commit 1042537 by mpyne:

Backport fix for bug 204391 to KDE 4.3.3 or 4.3.4 (we&apos;ll see who wins the race!)
This patch from Kåre Särs should fix the issue of JuK skipping every other track on
Windows (and possibly elsewhere, depending on how useful/lousy your Phonon backend is).

If it doesn&apos;t fix the bug, just reopen.

BUG:204391


 M  +6 -1      playermanager.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&amp;revision=1042537</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1115096</commentid>
    <comment_count>13</comment_count>
    <who name="Michael Pyne">mpyne</who>
    <bug_when>2011-05-05 03:52:10 +0000</bug_when>
    <thetext>*** Bug 208429 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>37944</attachid>
            <date>2009-10-29 13:51:31 +0000</date>
            <delta_ts>2009-10-29 13:51:31 +0000</delta_ts>
            <desc>Patch to fix skipping tracks</desc>
            <filename>skip.diff</filename>
            <type>text/plain</type>
            <size>1171</size>
            <attacher name="Kåre Särs">kare.sars</attacher>
            
              <data encoding="base64">ZGlmZiAtdXIga2RlbXVsdGltZWRpYS00LjMuMi9qdWsvcGxheWVybWFuYWdlci5jcHAgbW9kX2tk
ZW11bHRpbWVkaWEtNC4zLjIvanVrL3BsYXllcm1hbmFnZXIuY3BwCi0tLSBrZGVtdWx0aW1lZGlh
LTQuMy4yL2p1ay9wbGF5ZXJtYW5hZ2VyLmNwcAkyMDA5LTAzLTE4IDEyOjAwOjE4LjAwMDAwMDAw
MCArMDIwMAorKysgbW9kX2tkZW11bHRpbWVkaWEtNC4zLjIvanVrL3BsYXllcm1hbmFnZXIuY3Bw
CTIwMDktMTAtMjkgMTQ6NDA6MDcuMDAwMDAwMDAwICswMjAwCkBAIC00MDYsMTUgKzQwNiwyMiBA
QAogICAgIC8vIG9ubHkgYmUgY2FsbGVkIGJ5IHRoZSBjdXJyZW50bHkgIm1haW4iIG91dHB1dCBw
YXRoIChpLmUuIG5vdCBmcm9tIHRoZQogICAgIC8vIGNyb3NzZmFkaW5nIG9uZSkKIAotICAgIG1f
cGxheWxpc3RJbnRlcmZhY2UtPnBsYXlOZXh0KCk7Ci0gICAgbV9maWxlID0gbV9wbGF5bGlzdElu
dGVyZmFjZS0+Y3VycmVudEZpbGUoKTsKLQotICAgIGlmKG1fZmlsZS5pc051bGwoKSkgewotICAg
ICAgICBzdG9wKCk7CisgICAgUGhvbm9uOjpNZWRpYU9iamVjdCAqbWVkaWFPYmplY3QgPSBxb2Jq
ZWN0X2Nhc3Q8UGhvbm9uOjpNZWRpYU9iamVjdCAqPihzZW5kZXIoKSk7CisgICAgaWYoIW1lZGlh
T2JqZWN0KSB7CisgICAgICAgIHJldHVybjsKICAgICB9Ci0gICAgZWxzZSB7Ci0gICAgICAgIG1f
bWVkaWFbbV9jdXJPdXRwdXRQYXRoXS0+c2V0Q3VycmVudFNvdXJjZShtX2ZpbGUuYWJzRmlsZVBh
dGgoKSk7Ci0gICAgICAgIG1fbWVkaWFbbV9jdXJPdXRwdXRQYXRoXS0+cGxheSgpOworCisgICAg
aWYgKG1lZGlhT2JqZWN0ID09IG1fbWVkaWFbbV9jdXJPdXRwdXRQYXRoXSkgeworICAgICAgICBt
X3BsYXlsaXN0SW50ZXJmYWNlLT5wbGF5TmV4dCgpOworICAgICAgICBtX2ZpbGUgPSBtX3BsYXls
aXN0SW50ZXJmYWNlLT5jdXJyZW50RmlsZSgpOworCisgICAgICAgIGlmKG1fZmlsZS5pc051bGwo
KSkgeworICAgICAgICAgICAgc3RvcCgpOworICAgICAgICB9CisgICAgICAgIGVsc2UgeworICAg
ICAgICAgICAgbV9tZWRpYVttX2N1ck91dHB1dFBhdGhdLT5zZXRDdXJyZW50U291cmNlKG1fZmls
ZS5hYnNGaWxlUGF0aCgpKTsKKyAgICAgICAgICAgIG1fbWVkaWFbbV9jdXJPdXRwdXRQYXRoXS0+
cGxheSgpOworICAgICAgICB9CiAgICAgfQogfQogCg==
</data>

          </attachment>
      

    </bug>

</bugzilla>