[mythtv-commits] Ticket #11949: IPTV don't work with freebox TV (france)

MythTV noreply at mythtv.org
Sat Jan 4 19:20:12 UTC 2014


#11949: IPTV don't work with freebox TV (france)
----------------------------------+----------------------------
 Reporter:  snouf@…               |          Owner:  danielk
     Type:  Bug Report - General  |         Status:  new
 Priority:  minor                 |      Milestone:  unknown
Component:  MythTV - Recording    |        Version:  0.27-fixes
 Severity:  medium                |     Resolution:
 Keywords:  freeboxtv, iptv       |  Ticket locked:  0
----------------------------------+----------------------------

Comment (by nicolas@…):

 with record logging:

 Jan  4 18:44:02 symphonie mythbackend: mythbackend[13287]: D StreamHandler
 recorders/cetonrtsp.cpp:94 (ProcessRequest)
 CetonRTSP(rtsp://mafreebox.freebox.fr:554/fbxtv_pub/stream?namespace=1&service=203&flavour=sd):
 read: RTSP/1.0 200 OK#015
 Jan  4 18:44:02 symphonie mythbackend: mythbackend[13287]: D StreamHandler
 recorders/cetonrtsp.cpp:94 (ProcessRequest)
 CetonRTSP(rtsp://mafreebox.freebox.fr:554/fbxtv_pub/stream?namespace=1&service=203&flavour=sd):
 read: Cseq: 1#015
 Jan  4 18:44:02 symphonie mythbackend: mythbackend[13287]: D StreamHandler
 recorders/cetonrtsp.cpp:94 (ProcessRequest)
 CetonRTSP(rtsp://mafreebox.freebox.fr:554/fbxtv_pub/stream?namespace=1&service=203&flavour=sd):
 read: Server: fbxrtspd/1.2 Freebox RTSP server#015
 Jan  4 18:44:02 symphonie mythbackend: mythbackend[13287]: D StreamHandler
 recorders/cetonrtsp.cpp:94 (ProcessRequest)
 CetonRTSP(rtsp://mafreebox.freebox.fr:554/fbxtv_pub/stream?namespace=1&service=203&flavour=sd):
 read: Public: DESCRIBE, OPTIONS, SETUP, TEARDOWN, PLAY#015
 Jan  4 18:44:02 symphonie mythbackend: mythbackend[13287]: D StreamHandler
 recorders/cetonrtsp.cpp:94 (ProcessRequest)
 CetonRTSP(rtsp://mafreebox.freebox.fr:554/fbxtv_pub/stream?namespace=1&service=203&flavour=sd):
 read: #015
 Jan  4 18:44:02 symphonie mythbackend: mythbackend[13287]: W StreamHandler
 recorders/cetonrtsp.cpp:133 (ProcessRequest)
 CetonRTSP(rtsp://mafreebox.freebox.fr:554/fbxtv_pub/stream?namespace=1&service=203&flavour=sd):
 Expected CSeq of 1 but got
 Jan  4 18:44:02 symphonie mythbackend: mythbackend[13287]: E StreamHandler
 recorders/iptvstreamhandler.cpp:142 (run)
 IPTVSH(mafreebox.freebox.fr::554): RTSP interface did not support the
 necessary options

 First theres is a warning, it looks like mythtv expects 'CSeq' and the
 server sends 'Cseq'. Mythtv could handle this case to avoid the warning.

 The real problem comes from the parsing of options:

 the failing test is in iptvstreamhandler.cpp:


 {{{
        if (!(rtsp->GetOptions(options)     && options.contains("OPTIONS")
 &&
               options.contains("DESCRIBE")  && options.contains("SETUP")
 &&
               options.contains("PLAY")      &&
 options.contains("TEARDOWN")))

 }}}

 the culprit is the split:

 {{{
         options = _responseHeaders.value("Public").split(",");
 }}}

 the leading spaces are not removed here: we should use

 {{{
         options =
 _responseHeaders.value("Public").split(QRegExp(",\\s*"));
 }}}

  instead to remove them. Otherwise 'options' contains " OPTIONS" " SETUP"
 and so on ...

--
Ticket URL: <http://code.mythtv.org/trac/ticket/11949#comment:13>
MythTV <http://www.mythtv.org>
MythTV Media Center


More information about the mythtv-commits mailing list