Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuration and segfault fixes #2

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

Configuration and segfault fixes #2

wants to merge 9 commits into from

Conversation

gfto
Copy link
Contributor

@gfto gfto commented Oct 13, 2011

With these fixes I can compile obe-rt successfully under Slackware64 and use it to capture and encode video/audio with DeckLink Studio card. The commits are mixed, if you like what they are doing I can rebuild them to be more split by topic.

gfto pushed a commit to gfto/obe-rt that referenced this pull request Oct 29, 2013
Calling pthread_cancel( NULL ) results in the same crash as calling
pthread_join( NULL, ... )

This fixes the following:

  Start obecli.
  obecli> set input decklink
  obecli> set input opts card-idx=0
  obecli> probe input
  Probing device: Decklink card 0. Timeout 20 seconds
  Detected input streams:
  Input-stream-id: 0 - Video: RAW 720x576i 25/1fps
  Input-stream-id: 1 - Audio: PCM 16 channels 48kHz
  Encoder outputs:
  Output-stream-id: 0 - Input-stream-id: 0 - Video: AVC
  Output-stream-id: 1 - Input-stream-id: 1 - Audio: RAW - SDI audio pair: 1
  obecli> quit
  closing obe
  Program received signal SIGSEGV, Segmentation fault.
  0x00007ffff6675be1 in pthread_cancel () from /lib64/libpthread.so.0
  (gdb) bt
  #0  0x00007ffff6675be1 in pthread_cancel () from /lib64/libpthread.so.0
  ob-encoder#1  0x00000000004483d1 in obe_close (h=0x1417860) at obe.c:1233
  ob-encoder#2  0x000000000044433f in stop_encode (command=command@entry=0x0, child=child@entry=0x0) at obecli.c:1353
  ob-encoder#3  0x0000000000446d92 in main (argc=<optimized out>, argv=<optimized out>) at obecli.c:1534
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant