[vlc-commits] commit: metachannels: force the use of the ffmpeg demuxer for mp4 ( extension .m4v here). ( Rémi Duraffort )
git at videolan.org
git at videolan.org
Sat Nov 6 15:20:27 CET 2010
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sat Nov 6 15:06:22 2010 +0100| [11f64a071b31063915e035d0d3a8d6076ebadf2f] | committer: Rémi Duraffort
metachannels: force the use of the ffmpeg demuxer for mp4 (extension .m4v here).
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=11f64a071b31063915e035d0d3a8d6076ebadf2f
---
share/lua/playlist/metachannels.lua | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/share/lua/playlist/metachannels.lua b/share/lua/playlist/metachannels.lua
index 2e2b7d6..6c1c3a4 100644
--- a/share/lua/playlist/metachannels.lua
+++ b/share/lua/playlist/metachannels.lua
@@ -28,6 +28,8 @@ end
function parse()
local webpage = ''
+ local options
+
while true do
local line = vlc.readline()
if line == nil then break end
@@ -43,10 +45,12 @@ function parse()
if( item.name == 'item' ) then
simplexml.add_name_maps( item )
local url = string.gsub( item.children_map['link'][1].children[1], '&', '&' )
+ if( string.match( url, '%.m4v' ) ) then options = { ':play-and-pause', ':demux=avformat,ffmpeg' }
+ else options = { ':play-and-pause' } end
table.insert( tracks, { path = url,
title = item.children_map['title'][1].children[1],
arturl = item.children_map['media:thumbnail'][1].attributes['url'],
- options = {':play-and-pause'} } )
+ options = options } )
end
end
More information about the vlc-commits
mailing list