|
Lines 1-4
Link Here
|
| 1 |
i+--- guvcview/video_capture.c.orig 2024-11-02 13:15:33 UTC |
1 |
--- guvcview/video_capture.c.orig 2024-11-02 13:15:33 UTC |
| 2 |
+++ guvcview/video_capture.c |
2 |
+++ guvcview/video_capture.c |
| 3 |
@@ -34,6 +34,7 @@ |
3 |
@@ -34,6 +34,7 @@ |
| 4 |
/* support for internationalization - i18n */ |
4 |
/* support for internationalization - i18n */ |
|
Lines 8-22
i+--- guvcview/video_capture.c.orig 2024-11-02 13:15:33 UTC
Link Here
|
| 8 |
|
8 |
|
| 9 |
#include "config.h" |
9 |
#include "config.h" |
| 10 |
#include "core_io.h" |
10 |
#include "core_io.h" |
| 11 |
@@ -82,6 +83,7 @@ static __THREAD_TYPE encoder_thread; |
11 |
@@ -622,8 +623,8 @@ static void *audio_processing_loop(void *data) { |
| 12 |
static v4l2_dev_t *my_vd = NULL; |
|
|
| 13 |
|
| 14 |
static __THREAD_TYPE encoder_thread; |
| 15 |
+static __THREAD_TYPE encoder_audio_thread; |
| 16 |
|
| 17 |
static int my_encoder_status = 0; |
| 18 |
|
| 19 |
@@ -622,8 +624,8 @@ static void *audio_processing_loop(void *data) { |
| 20 |
encoder_context_t *encoder_ctx = (encoder_context_t *)data; |
12 |
encoder_context_t *encoder_ctx = (encoder_context_t *)data; |
| 21 |
|
13 |
|
| 22 |
if (debug_level > 1) |
14 |
if (debug_level > 1) |
|
Lines 27-33
i+--- guvcview/video_capture.c.orig 2024-11-02 13:15:33 UTC
Link Here
|
| 27 |
|
19 |
|
| 28 |
audio_context_t *audio_ctx = get_audio_context(); |
20 |
audio_context_t *audio_ctx = get_audio_context(); |
| 29 |
if (!audio_ctx) { |
21 |
if (!audio_ctx) { |
| 30 |
@@ -717,8 +719,8 @@ static void *encoder_loop(void *data) { |
22 |
@@ -717,8 +718,8 @@ static void *encoder_loop(void *data) { |
| 31 |
my_encoder_status = 1; |
23 |
my_encoder_status = 1; |
| 32 |
|
24 |
|
| 33 |
if (debug_level > 1) |
25 |
if (debug_level > 1) |
|
Lines 38-44
i+--- guvcview/video_capture.c.orig 2024-11-02 13:15:33 UTC
Link Here
|
| 38 |
|
30 |
|
| 39 |
/*get the audio context*/ |
31 |
/*get the audio context*/ |
| 40 |
audio_context_t *audio_ctx = get_audio_context(); |
32 |
audio_context_t *audio_ctx = get_audio_context(); |
| 41 |
@@ -830,8 +832,7 @@ static void *encoder_loop(void *data) { |
33 |
@@ -830,8 +831,7 @@ static void *encoder_loop(void *data) { |
| 42 |
fprintf(stderr, "GUVCVIEW: encoder audio thread creation failed (%i)\n", |
34 |
fprintf(stderr, "GUVCVIEW: encoder audio thread creation failed (%i)\n", |
| 43 |
ret); |
35 |
ret); |
| 44 |
else if (debug_level > 2) |
36 |
else if (debug_level > 2) |
|
Lines 48-54
i+--- guvcview/video_capture.c.orig 2024-11-02 13:15:33 UTC
Link Here
|
| 48 |
} |
40 |
} |
| 49 |
|
41 |
|
| 50 |
while (video_capture_get_save_video()) { |
42 |
while (video_capture_get_save_video()) { |
| 51 |
@@ -914,8 +915,8 @@ void *capture_loop(void *data) { |
43 |
@@ -914,8 +914,8 @@ void *capture_loop(void *data) { |
| 52 |
quit = 0; |
44 |
quit = 0; |
| 53 |
|
45 |
|
| 54 |
if (debug_level > 1) |
46 |
if (debug_level > 1) |
|
Lines 59-65
i+--- guvcview/video_capture.c.orig 2024-11-02 13:15:33 UTC
Link Here
|
| 59 |
|
51 |
|
| 60 |
int ret = 0; |
52 |
int ret = 0; |
| 61 |
|
53 |
|
| 62 |
@@ -1210,8 +1211,7 @@ int start_encoder_thread() { |
54 |
@@ -1209,8 +1209,7 @@ int start_encoder_thread() { |
| 63 |
if (ret) |
55 |
if (ret) |
| 64 |
fprintf(stderr, "GUVCVIEW: encoder thread creation failed (%i)\n", ret); |
56 |
fprintf(stderr, "GUVCVIEW: encoder thread creation failed (%i)\n", ret); |
| 65 |
else if (debug_level > 2) |
57 |
else if (debug_level > 2) |