1.12.0 - Redirected log path: some files created in standard path | Page 2

Discussion in 'Archive' started by HTPCSourcer, August 9, 2015.

  1. HTPCSourcer
    • Team MediaPortal
    • Administrator

    HTPCSourcer MP2 Product Manager

    Joined:
    May 16, 2008
    Messages:
    10,794
    Likes Received:
    1,125
    Gender:
    Male
    Ratings:
    +2,410 / 22
    Home Country:
    Germany Germany
    Show System Specs
    Thanks:) - but I have no VS2013/2015 installed and also never worked on such projects. :barefoot:

    Anybody out there who could compile the two entries in TSReader.cpp and dshowhelper.cpp to point to the generic path definied in mediaportaldirs.xml instead?


     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. Owlsroost
    • Team MediaPortal

    Owlsroost Development Group

    Joined:
    October 28, 2008
    Messages:
    5,537
    Likes Received:
    2,829
    Location:
    Cambridge
    Ratings:
    +4,131 / 1
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    If only it was that simple... ;) (remember the filters are written in C++ and the main part of MP is written in C# and uses the .NET framework libraries. So you can't just simply port across the XML file parsing code from the C# world).
     
  4. HTPCSourcer
    • Team MediaPortal
    • Administrator

    HTPCSourcer MP2 Product Manager

    Joined:
    May 16, 2008
    Messages:
    10,794
    Likes Received:
    1,125
    Gender:
    Male
    Ratings:
    +2,410 / 22
    Home Country:
    Germany Germany
    Show System Specs
    Never mind. If it doesn't work easily, then so be it.
     
  5. Owlsroost
    • Team MediaPortal

    Owlsroost Development Group

    Joined:
    October 28, 2008
    Messages:
    5,537
    Likes Received:
    2,829
    Location:
    Cambridge
    Ratings:
    +4,131 / 1
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    I'll try and do the 'log path in the registry' mod over the weekend....(that *should* be much easier).
     
    • Thank You! Thank You! x 1
  6. Sebastiii
    • Team MediaPortal

    Sebastiii Development Group

    Joined:
    November 12, 2007
    Messages:
    16,297
    Likes Received:
    6,249
    Gender:
    Male
    Location:
    France
    Ratings:
    +10,270 / 9
    Home Country:
    France France
    Show System Specs
    What other C++ log are ok ? Maybe we can take the code from there ? But still it's surely not easy (i mean) surely a lot of change because we need to parse the info from C# side to C++ etc. lol but doable with time lol
     
  7. Sebastiii
    • Team MediaPortal

    Sebastiii Development Group

    Joined:
    November 12, 2007
    Messages:
    16,297
    Likes Received:
    6,249
    Gender:
    Male
    Location:
    France
    Ratings:
    +10,270 / 9
    Home Country:
    France France
    Show System Specs
    Looking @ my folder, DVBSubs.log is C++ filter too
     
  8. Owlsroost
    • Team MediaPortal

    Owlsroost Development Group

    Joined:
    October 28, 2008
    Messages:
    5,537
    Likes Received:
    2,829
    Location:
    Cambridge
    Ratings:
    +4,131 / 1
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    All of the filters are C++ (they basically have to be because of DirectShow).

    The main client filters are TsReader, DVBSub3, MPAudioRenderer, BDReader, Core-CC-Parser - AFAIK these all have a hard-wired log path.

    These are also used by MP2 and can be used 'standalone' by other apps - that is why the log path situation isn't just an 'MP1' thing...
     
  9. HTPCSourcer
    • Team MediaPortal
    • Administrator

    HTPCSourcer MP2 Product Manager

    Joined:
    May 16, 2008
    Messages:
    10,794
    Likes Received:
    1,125
    Gender:
    Male
    Ratings:
    +2,410 / 22
    Home Country:
    Germany Germany
    Show System Specs
    As I said in my first post: all logs except evr and tsreader (and restart.vbs) are logged in the log path that is defined in the mediaportaldirs.xml. So I trust that you could pick any source that is writing a log as an example.[DOUBLEPOST=1440266175][/DOUBLEPOST]
    Ah, I am not using MPAR and BD. I also don't know what Core-CC Parser is and if it does anything in my own Environment.
     
    • Like Like x 1
  10. Owlsroost
    • Team MediaPortal

    Owlsroost Development Group

    Joined:
    October 28, 2008
    Messages:
    5,537
    Likes Received:
    2,829
    Location:
    Cambridge
    Ratings:
    +4,131 / 1
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    I've just checked the code for all the filters I listed above - they all have the same hard-wired log path.

    The TV server filters e.g. TsWriter also have a hard-wired log path, it's just a different one.

    I know it's frustrating for you, but as I have said before you can 'fix' the problem right now by using symbolic links in Windows (to re-direct the log folder) without needing to change any code at all if you want to....
     
    • Like Like x 1
  11. HTPCSourcer
    • Team MediaPortal
    • Administrator

    HTPCSourcer MP2 Product Manager

    Joined:
    May 16, 2008
    Messages:
    10,794
    Likes Received:
    1,125
    Gender:
    Male
    Ratings:
    +2,410 / 22
    Home Country:
    Germany Germany
    Show System Specs
    Which makes sense in terms that they probably all come from the same source and therefore have the same legacy :)

    Much less of a nuisance since the server side is running on the server, where the redirected log path is pointing too.

    Nah, I am pretty resiliant :D

    In fact it is more a question of personal comfort when collecting logs for uploading to a support thread, which now risk to miss some content. I am not sure what exactly you mean by symbolic links. Can you give me an example please?

    I will amend the Wiki entry about the centralized path (mediaportaldirts.xml) and add some more information about the hardcoded logging of the above-mentioned files,
     
    • Like Like x 1
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!