diff options
author | mich <mich@FreeBSD.org> | 2006-12-08 19:53:14 +0800 |
---|---|---|
committer | mich <mich@FreeBSD.org> | 2006-12-08 19:53:14 +0800 |
commit | 703c69a0278c83444ccf09c5a91b7a41e7cd0e3a (patch) | |
tree | f611115aadd4a033139514411e4e596002595ec8 /audio | |
parent | 43982a4a4f68f22b2b2820c12749c29bebe491ec (diff) | |
download | freebsd-ports-gnome-703c69a0278c83444ccf09c5a91b7a41e7cd0e3a.tar.gz freebsd-ports-gnome-703c69a0278c83444ccf09c5a91b7a41e7cd0e3a.tar.zst freebsd-ports-gnome-703c69a0278c83444ccf09c5a91b7a41e7cd0e3a.zip |
- Add patch to fix last.fm stream playing with libxine 1.1.3
Obtained from: amarok svn
Diffstat (limited to 'audio')
-rw-r--r-- | audio/amarok-kde4/files/patch-amarok_src_amarok__proxy.rb | 26 | ||||
-rw-r--r-- | audio/amarok/files/patch-amarok_src_amarok__proxy.rb | 26 |
2 files changed, 52 insertions, 0 deletions
diff --git a/audio/amarok-kde4/files/patch-amarok_src_amarok__proxy.rb b/audio/amarok-kde4/files/patch-amarok_src_amarok__proxy.rb new file mode 100644 index 000000000000..621471505cd7 --- /dev/null +++ b/audio/amarok-kde4/files/patch-amarok_src_amarok__proxy.rb @@ -0,0 +1,26 @@ + +$FreeBSD$ + +--- amarok/src/amarok_proxy.rb.orig ++++ amarok/src/amarok_proxy.rb +@@ -117,6 +117,11 @@ + def cp_to_empty_outward( income, output ) + myputs "cp_to_empty_outward( income => #{income.inspect}, output => #{output.inspect}" + income.each_line do |data| ++ if data =~ /User-Agent: xine\/([0-9.]+)/ ++ version = $1.split(".").collect { |v| v.to_i } ++ myputs("Found xine user agent version #{version.join(".")}") ++ @xineworkaround = ( version[0] <= 1 && version[1] <= 1 && version[2] <= 2 ) ++ end + myputs( data ) + data.chomp! + safe_write( output, data ) +@@ -142,7 +147,7 @@ + + def cp_all_inward( income, output ) + myputs( "cp_all( income => #{income.inspect}, output => #{output.inspect}" ) +- if self.is_a?( LastFM ) and @engine == 'xine-engine' ++ if self.is_a?( LastFM ) and @xineworkaround + myputs( "Using buffer fill workaround." ) + filler = Array.new( 4096, 0 ) + safe_write( output, filler ) # HACK: Fill xine's buffer so that xine_open() won't block diff --git a/audio/amarok/files/patch-amarok_src_amarok__proxy.rb b/audio/amarok/files/patch-amarok_src_amarok__proxy.rb new file mode 100644 index 000000000000..621471505cd7 --- /dev/null +++ b/audio/amarok/files/patch-amarok_src_amarok__proxy.rb @@ -0,0 +1,26 @@ + +$FreeBSD$ + +--- amarok/src/amarok_proxy.rb.orig ++++ amarok/src/amarok_proxy.rb +@@ -117,6 +117,11 @@ + def cp_to_empty_outward( income, output ) + myputs "cp_to_empty_outward( income => #{income.inspect}, output => #{output.inspect}" + income.each_line do |data| ++ if data =~ /User-Agent: xine\/([0-9.]+)/ ++ version = $1.split(".").collect { |v| v.to_i } ++ myputs("Found xine user agent version #{version.join(".")}") ++ @xineworkaround = ( version[0] <= 1 && version[1] <= 1 && version[2] <= 2 ) ++ end + myputs( data ) + data.chomp! + safe_write( output, data ) +@@ -142,7 +147,7 @@ + + def cp_all_inward( income, output ) + myputs( "cp_all( income => #{income.inspect}, output => #{output.inspect}" ) +- if self.is_a?( LastFM ) and @engine == 'xine-engine' ++ if self.is_a?( LastFM ) and @xineworkaround + myputs( "Using buffer fill workaround." ) + filler = Array.new( 4096, 0 ) + safe_write( output, filler ) # HACK: Fill xine's buffer so that xine_open() won't block |