NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 34 35 36 37 38 … 93 Next »
dvd volume for .iso?

 
  • 0 Vote(s) - 0 Average
dvd volume for .iso?
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#1
2008-02-26, 02:54 AM
i'm trying to fix a bug in imonlcd plugin, when viewing dvd's from a .iso or a dir, it locks up when asking for the volume label from dvd.utilities...works fine for actual dvd discs..

here's the code, is there any way to determine if dvd is a dir or iso?

Code:
if(eventText!="")
        {
        //Get the title of the track in the DVD Player
        Logger.Verbose("iMONVFD: DVD Playback Started Event");
        driveLetter = DvdUtilities.DriveWithDVD;
        Logger.Verbose("iMONVFD: Get DVD Title from " + driveLetter);
        lineOne = DvdUtilities.VolumeName(driveLetter) + "  ";
        Logger.Verbose("iMONVFD: " + lineOne);
        lineOneLength = lineOne.Length;

i know you were making some changes in the event area so wanted to let you know about this one..
unless there's a fix i'll have to disable the vol label for dvd stuff for now..
thanx..can't wait for new version..Big Grin
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#2
2008-02-26, 03:12 AM
here's the error:
Quote:2008-02-25 21:07:18.718 VERBOSE [1] About to play DVD volume: \\pvr\e\mpg\dvds\sith\
2008-02-25 21:07:25.281 VERBOSE [1] After PlayDVD()
2008-02-25 21:07:26.171 VERBOSE [1] NOTIFY:
type=DVDPlaybackStarted
text=\\pvr\e\mpg\dvds\sith\
2008-02-25 21:07:26.171 VERBOSE [1] iMONVFD: DVD Playback Started Event
2008-02-25 21:07:26.187 VERBOSE [1] iMONVFD: Get DVD Title from
2008-02-25 21:07:26.296 ERROR [1] Error: msg=0x100 (WM_KEYDOWN) hwnd=0x1e055c wparam=0xd lparam=0x1c0001 result=0x0 : System.ArgumentOutOfRangeException: Index and length must refer to a location within the string.
Parameter name: length
at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
at System.String.Substring(Int32 startIndex, Int32 length)
at CommonGBPVRUtilities.DvdUtilities.VolumeName(String DriveLetter)
at IMONVFD.ImonVfdTask.Notify(EventTypes eventType, String eventText)
at GBPVR.Backend.Common.xc4f12ec3a8a4c96b.x85b8d963f05ddf09(EventTypes x4f04899de3605e17, String xbc19b591abc4848a)
at GBPVR.x2a148ffd35c37d14.x64fff8c5415b9fc5(String xb2ac3fdb71f19c57)
at GBPVR.xd19a5a5f937f4f7f.xbb1fe6ac047171ad(Object xe15d45da66d44713)
at GBPVR.DisplayElements.x994d5b136f1a8868.xdae9991ab918b397(KeyEventArgs xc4f45905cb1fc7ba)
at GBPVR.xd19a5a5f937f4f7f.OnKeyDown(KeyEventArgs e)
at GBPVR.x86396f56243de9fb.OnKeyDown(KeyEventArgs e)
at GBPVR.xbb1566157f5f8b1f.xdae9991ab918b397(Object xdf2e3583f942db7b, KeyEventArgs xc4f45905cb1fc7ba)
at System.Windows.Forms.Control.OnKeyDown(KeyEventArgs e)
at System.Windows.Forms.Control.ProcessKeyEventArgs(Message& m)
at System.Windows.Forms.Control.ProcessKeyMessage(Message& m)
at System.Windows.Forms.Control.WmKeyChar(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at GBPVR.xbb1566157f5f8b1f.WndProc(Message& m)
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,735
Threads: 767
Joined: Nov 2003
#3
2008-02-26, 03:34 AM
Going by the stack trace, it looks like a bug in CommonGBPVRUtilities.DvdUtilities.VolumeName(). Incorrectly parsing the path or something. Its probably expecting the first two letters to be something like "E:" instead of the "\\" its getting with your network share containing DVDs (\\pvr\e\mpg\dvds\sith\)

Its not a GB-PVR problem, so not too much I can do about this. It would need to be fixed in CommonGBPVRUtilities.
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#4
2008-02-26, 05:09 AM
i never thought it might be the network path, will try with local path..

but i figured out a way to bypass the error and test for path myself..so no lockups..Smile
[parse the string for dirs and use that, if it's a drive letter only, lookup vol label]

thanx tho..Big Grin
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  How to render a graphical volume display in nPVR McBainUK 3 2,055 2010-12-13, 03:25 PM
Last Post: imilne
  A Synchronized Volume Control for your Application mkenyon2 0 1,187 2008-01-16, 09:08 PM
Last Post: mkenyon2
  Getting Volume Level ralphy 1 1,264 2007-10-29, 03:26 PM
Last Post: sub
  volume level from API povarotti 3 1,797 2006-01-19, 10:11 PM
Last Post: sub
  Is there a function to get the current volume level? Jeff 0 1,130 2005-05-17, 01:24 AM
Last Post: Jeff

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode