<?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>296255</bug_id>
          
          <creation_ts>2012-03-18 09:15:50 +0000</creation_ts>
          <short_desc>Loading stream multiple times fails</short_desc>
          <delta_ts>2012-03-19 09:45:42 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>Unmaintained</classification>
          <product>phonon-backend-gstreamer</product>
          <component>general</component>
          <version>4.5.1</version>
          <rep_platform>openSUSE</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>273198</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>4.6.1</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Amos Kariuki">amoskahiga</reporter>
          <assigned_to name="Harald Sitter">sitter</assigned_to>
          <cc>martin.sandsmark</cc>
    
    <cc>myriam</cc>
    
    <cc>romain.perier</cc>
    
    <cc>tdfischer</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>1237626</commentid>
    <comment_count>0</comment_count>
    <who name="Amos Kariuki">amoskahiga</who>
    <bug_when>2012-03-18 09:15:50 +0000</bug_when>
    <thetext>User-Agent:       Mozilla/5.0 (X11; Linux i686; rv:10.0.2) Gecko/20100101 Firefox/10.0.2
Build Identifier: 

If a playlist has two or more streams, restarting (stopping and playing) an actively playing stream will cause it to fail to play in all subsequent times.

Reproducible: Always

Steps to Reproduce:
1. (Optionally) Clear the current Playlist.
2. Add two media streams using the &quot;Playlist -&gt; Add Stream...&quot; menu option. Here are two sample NPR URLs you can use:
 - http://live.scpr.org:80
 - http://kqed-ice.streamguys.org:80/kqedradio-go-e1
2. Start playing the first media stream.
3. Stop and restart the actively playing (first) media stream.
Actual Results:  
The stream will fail to play in all subsequent attempts.
The second stream can however be started, stopped and restarted.

Expected Results:  
The media stream should play when it&apos;s restarted in all subsequent attempts.

From some debugging it seems that the EngineController::m_media object&apos;s &quot;state&quot; is getting into an unexpected value/state (loading, stopped, or playing) than is expected.

I was unable to figure out exactly what was going on but could alleviate the problem a little using the attached temporary workaround patch -- it gets the media stream load on the second try. The patch probably breaks other stuff, but you can use it to see where I was poking around which hopefully is close to the problem area.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1237627</commentid>
    <comment_count>1</comment_count>
      <attachid>69703</attachid>
    <who name="Amos Kariuki">amoskahiga</who>
    <bug_when>2012-03-18 09:17:07 +0000</bug_when>
    <thetext>Created attachment 69703
Temporary patch -- for demonstration of bug only</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1237750</commentid>
    <comment_count>2</comment_count>
    <who name="Myriam Schweingruber">myriam</who>
    <bug_when>2012-03-18 16:13:23 +0000</bug_when>
    <thetext>I assume you use the Phonon-backend-gstreamer? Is this reproducible with the phonon-backend-vlc? It works fine with that backend version 0.5.0 for me.

FWIW: Sound is handled by Phonon, not by Amarok, so I doubt patching Amarok is the way to go.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1237760</commentid>
    <comment_count>3</comment_count>
    <who name="Amos Kariuki">amoskahiga</who>
    <bug_when>2012-03-18 17:00:02 +0000</bug_when>
    <thetext>Myriam: I think you nailed it! I installed and switched to phonon-backend-vlc v0.4.1 and the problem disappears. You can mark this bug resolved since that solves my problem.

FYI: Backends I have installed:
1. phonon-backend-vlc v0.4.1 -- Works for this use-case!
2. phonon-backend-gstreamter-0_10 v4.5.1 -- Fails the use-case described in this bug (It&apos;s what I was using before).
3. phonon-backend-xine v4.4.4 -- Fails completely with a crash: I assume support for this backend is being dropped.

openSUSE 11.2
KDE 4.7.2

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1237996</commentid>
    <comment_count>4</comment_count>
    <who name="Myriam Schweingruber">myriam</who>
    <bug_when>2012-03-19 09:45:42 +0000</bug_when>
    <thetext>Thank you for the feedback.

*** This bug has been marked as a duplicate of bug 273198 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>69703</attachid>
            <date>2012-03-18 09:17:07 +0000</date>
            <delta_ts>2012-03-18 09:17:07 +0000</delta_ts>
            <desc>Temporary patch -- for demonstration of bug only</desc>
            <filename>workaround.patch</filename>
            <type>text/plain</type>
            <size>485</size>
            <attacher name="Amos Kariuki">amoskahiga</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL3NyYy9FbmdpbmVDb250cm9sbGVyLmNwcCBiL3NyYy9FbmdpbmVDb250cm9s
bGVyLmNwcAppbmRleCBjNTAyMDdmLi5kYjM4ZjNiIDEwMDY0NAotLS0gYS9zcmMvRW5naW5lQ29u
dHJvbGxlci5jcHAKKysrIGIvc3JjL0VuZ2luZUNvbnRyb2xsZXIuY3BwCkBAIC04MDIsNyArODAy
LDcgQEAgRW5naW5lQ29udHJvbGxlcjo6c2V0TmV4dFRyYWNrKCBNZXRhOjpUcmFja1B0ciB0cmFj
ayApCiAgICAgaWYoIHRyYWNrLT5wbGF5YWJsZVVybCgpLmlzRW1wdHkoKSApCiAgICAgICAgIHJl
dHVybjsKIAotICAgIGlmKCBpc1BsYXlpbmcoKSApCisgICAgaWYoIGlzUGxheWluZygpIHx8IG1f
bWVkaWEuZGF0YSgpLT5zdGF0ZSgpID09IFBob25vbjo6TG9hZGluZ1N0YXRlKQogICAgIHsKICAg
ICAgICAgbV9tZWRpYS5kYXRhKCktPmNsZWFyUXVldWUoKTsKICAgICAgICAgaWYoIHRyYWNrLT5w
bGF5YWJsZVVybCgpLmlzTG9jYWxGaWxlKCkgKQo=
</data>

          </attachment>
      

    </bug>

</bugzilla>