Opened 9 years ago

Closed 9 years ago

#9468 closed Patch - Bug Fix (Fixed)

[PATCH] Windows libmyth: Unhandled page fault

Reported by: Lawrence Rust <lvr@…> Owned by: beirdo
Priority: minor Milestone: 0.25
Component: MythTV - General Version: Master Head
Severity: medium Keywords: Windows libmyth
Cc: Ticket locked: no

Description

A current Windows build of MythTV when playing any video or livetv results in an "Unhandled page fault on read access to 0xb70c0000 at address 0xb70c0000".

The page fault is traceable to the call to avformat_alloc_context from AvFormatDecoder::OpenFile? in libmythtv.

Commit 83e43f3cee161e996f41ff8413896b8a1080c54c made avformat_alloc_context, and others, weak imports so that libmyth doesn't depend on libavformat.

However, libmythtv directly links to libavformat and the Windows linker (both cross and native) has a problem reconciling the two methods and ends up building the libmythtv DLL without an import for avformat_alloc_context.

The attached patch resolves the problem by removing the weak import and adding libavformat to libmyth.

Attachments (1)

spdifenc.diff (1.2 KB) - added by Lawrence Rust <lvr@…> 9 years ago.

Download all attachments as: .zip

Change History (3)

Changed 9 years ago by Lawrence Rust <lvr@…>

Attachment: spdifenc.diff added

comment:1 Changed 9 years ago by beirdo

Milestone: unknown0.25
Owner: set to beirdo
Status: newassigned

Committed in 5b15e27b10ff on master. This was also causing similar issues in OS X builds. Thanks.

comment:2 Changed 9 years ago by beirdo

Resolution: Fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.