mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-05-06 16:02:23 +00:00
[mod_openh264, mod_av] add avcodec and openh264 debug
This commit is contained in:
parent
e2a53bdcb8
commit
1cbb2e6fc3
@ -1764,6 +1764,12 @@ static switch_status_t switch_h264_control(switch_codec_t *codec,
|
|||||||
h264_codec_context_t *context = (h264_codec_context_t *)codec->private_info;
|
h264_codec_context_t *context = (h264_codec_context_t *)codec->private_info;
|
||||||
|
|
||||||
switch(cmd) {
|
switch(cmd) {
|
||||||
|
case SCC_DEBUG:
|
||||||
|
{
|
||||||
|
int32_t level = *((uint32_t *) cmd_data);
|
||||||
|
mod_av_globals.debug = level;
|
||||||
|
}
|
||||||
|
break;
|
||||||
case SCC_VIDEO_GEN_KEYFRAME:
|
case SCC_VIDEO_GEN_KEYFRAME:
|
||||||
context->need_key_frame = 1;
|
context->need_key_frame = 1;
|
||||||
break;
|
break;
|
||||||
|
@ -77,6 +77,7 @@ typedef struct h264_codec_context_s {
|
|||||||
switch_bool_t last_received_complete_picture;
|
switch_bool_t last_received_complete_picture;
|
||||||
switch_codec_settings_t codec_settings;
|
switch_codec_settings_t codec_settings;
|
||||||
unsigned int bandwidth;
|
unsigned int bandwidth;
|
||||||
|
int32_t debug;
|
||||||
} h264_codec_context_t;
|
} h264_codec_context_t;
|
||||||
|
|
||||||
int FillSpecificParameters(h264_codec_context_t *context) {
|
int FillSpecificParameters(h264_codec_context_t *context) {
|
||||||
@ -745,6 +746,12 @@ static switch_status_t switch_h264_control(switch_codec_t *codec,
|
|||||||
h264_codec_context_t *context = (h264_codec_context_t *)codec->private_info;
|
h264_codec_context_t *context = (h264_codec_context_t *)codec->private_info;
|
||||||
|
|
||||||
switch(cmd) {
|
switch(cmd) {
|
||||||
|
case SCC_DEBUG:
|
||||||
|
{
|
||||||
|
int32_t level = *((uint32_t *) cmd_data);
|
||||||
|
context->debug = level;
|
||||||
|
}
|
||||||
|
break;
|
||||||
case SCC_VIDEO_GEN_KEYFRAME:
|
case SCC_VIDEO_GEN_KEYFRAME:
|
||||||
context->need_key_frame = 1;
|
context->need_key_frame = 1;
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user