fix double free
[platform/core/multimedia/libmm-streamrecorder.git] / src / include / mm_streamrecorder_video.h
1 /*
2  * libmm-streamrecorder
3  *
4  * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact: Hyuntae Kim <ht1211.kim@samsung.com>
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  *
20  */
21
22 #ifndef __MM_STREAMRECORDER_VIDEO_H__
23 #define __MM_STREAMRECORDER_VIDEO_H__
24
25 /*=======================================================================================
26 | INCLUDE FILES                                                                         |
27 ========================================================================================*/
28 #include <glib.h>
29
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33
34 /*=======================================================================================
35 | STRUCTURE DEFINITIONS                                                                 |
36 ========================================================================================*/
37 /**
38  * StreamRecorder VideoInfo information for video mode
39  */
40 typedef struct {
41         int iVideoEncoder;              /**< Video Encoder */
42         gboolean b_commiting;   /**< Is it commiting now? */
43         guint64 video_frame_count;
44                                                         /**< current video frame */
45         guint64 filesize;       /**< current file size */
46         guint64 max_size;       /**< max recording size */
47         guint64 max_time;       /**< max recording time */
48 } _MMStreamRecorderVideoInfo;
49
50 /*=======================================================================================
51 | GLOBAL FUNCTION PROTOTYPES                                                            |
52 ========================================================================================*/
53
54 int _mmstreamrecorder_check_videocodec_fileformat_compatibility(unsigned int video_codec, unsigned int file_format);
55
56 #ifdef __cplusplus
57 }
58 #endif
59 #endif                                                  /* __MM_STREAMRECORDER_VIDEO_H__ */