From e6cf8620757df1b0be34446a5aee982bc729b59d Mon Sep 17 00:00:00 2001 From: Jeongmo Yang Date: Thu, 22 Sep 2022 17:20:42 +0900 Subject: [PATCH] Fix build error for product TV [Version] 0.10.271 [Issue Type] Bug fix Change-Id: Ia189b3820283c7cd15d0dfbd731dc9f1ac7eb7c3 Signed-off-by: Jeongmo Yang --- packaging/libmm-camcorder.spec | 2 +- src/include/mm_camcorder_gstcommon.h | 4 ++++ src/mm_camcorder_gstcommon.c | 5 +---- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/packaging/libmm-camcorder.spec b/packaging/libmm-camcorder.spec index 76b7b96..f1c210c 100755 --- a/packaging/libmm-camcorder.spec +++ b/packaging/libmm-camcorder.spec @@ -1,6 +1,6 @@ Name: libmm-camcorder Summary: Camera and recorder library -Version: 0.10.270 +Version: 0.10.271 Release: 0 Group: Multimedia/Libraries License: Apache-2.0 diff --git a/src/include/mm_camcorder_gstcommon.h b/src/include/mm_camcorder_gstcommon.h index ad10b73..e135548 100644 --- a/src/include/mm_camcorder_gstcommon.h +++ b/src/include/mm_camcorder_gstcommon.h @@ -184,6 +184,10 @@ void _mmcamcorder_set_encoder_bitrate(MMCamcorderEncoderType type, int codec, in gboolean _mmcamcorder_invoke_video_stream_cb(MMHandleType handle, GstSample *sample, gboolean is_preview, int stream_id); GstPadProbeReturn __mmcamcorder_muxed_dataprobe(GstPad *pad, GstPadProbeInfo *info, gpointer u_data); GstPadProbeReturn __mmcamcorder_eventprobe_monitor(GstPad *pad, GstPadProbeInfo *info, gpointer u_data); +#ifdef _MMCAMCORDER_PRODUCT_TV +bool __mmcamcorder_find_max_resolution(MMHandleType handle, gint *max_width, gint *max_height); +#endif /* _MMCAMCORDER_PRODUCT_TV */ + #ifdef __cplusplus } #endif diff --git a/src/mm_camcorder_gstcommon.c b/src/mm_camcorder_gstcommon.c index 05384d3..362421c 100644 --- a/src/mm_camcorder_gstcommon.c +++ b/src/mm_camcorder_gstcommon.c @@ -153,9 +153,6 @@ static GstPadProbeReturn __mmcamcorder_video_dataprobe_record(GstPad *pad, GstPa static int __mmcamcorder_get_amrnb_bitrate_mode(int bitrate); static guint32 _mmcamcorder_get_structure_fourcc(const GstStructure *structure); -#ifdef _MMCAMCORDER_PRODUCT_TV -static bool __mmcamcorder_find_max_resolution(MMHandleType handle, gint *max_width, gint *max_height); -#endif /* _MMCAMCORDER_PRODUCT_TV */ static gboolean __mmcamcorder_set_stream_data(MMCamcorderVideoStreamDataType *stream, GstBuffer *buffer, GstMapInfo *map_info); static gboolean __mmcamcorder_set_stream_data_zero_copy(MMCamcorderVideoStreamDataType *stream, GstBuffer *buffer, GstMemory *memory); @@ -3207,7 +3204,7 @@ bool _mmcamcorder_recreate_decoder_for_encoded_preview(MMHandleType handle) } #ifdef _MMCAMCORDER_PRODUCT_TV -static bool __mmcamcorder_find_max_resolution(MMHandleType handle, gint *max_width, gint *max_height) +bool __mmcamcorder_find_max_resolution(MMHandleType handle, gint *max_width, gint *max_height) { _MMCamcorderSubContext *sc = NULL; mmf_camcorder_t *hcamcorder = NULL; -- 2.7.4