[glsdk/meta-ti-glsdk.git] / recipes-ti / gstreamer-ti / gstreamer-ti / 0004-Cosmetic-cleanup-clarify-some-comments.patch
1 From 03ab3ad3f790dde2dbddfeb62001e8610dbb919a Mon Sep 17 00:00:00 2001
2 From: Don Darling <don.osc2@gmail.com>
3 Date: Thu, 26 Aug 2010 18:25:56 -0500
4 Subject: [PATCH 4/8] Cosmetic cleanup / clarify some comments.
6 ---
7 .../ticodecplugin/src/gsttidmaivideosink.c | 42 ++++++++-----------
8 1 files changed, 18 insertions(+), 24 deletions(-)
10 diff --git a/gstreamer_ti/ti_build/ticodecplugin/src/gsttidmaivideosink.c b/gstreamer_ti/ti_build/ticodecplugin/src/gsttidmaivideosink.c
11 index 4e327ae..1d04e1c 100644
12 --- a/gstreamer_ti/ti_build/ticodecplugin/src/gsttidmaivideosink.c
13 +++ b/gstreamer_ti/ti_build/ticodecplugin/src/gsttidmaivideosink.c
14 @@ -434,23 +434,23 @@ static void gst_tidmaivideosink_init(GstTIDmaiVideoSink * dmaisink,
15 * Anything that has a NULL value will be initialized with DMAI defaults
16 * in the gst_tidmaivideosink_init_display function.
17 */
18 - dmaisink->displayStd = NULL;
19 - dmaisink->displayDevice = NULL;
20 - dmaisink->dGfxAttrs = defaultGfxAttrs;
21 - dmaisink->videoStd = NULL;
22 - dmaisink->videoOutput = NULL;
23 - dmaisink->numBufs = -1;
24 - dmaisink->framerepeat = 0;
25 - dmaisink->repeat_with_refresh = FALSE;
26 + dmaisink->displayStd = NULL;
27 + dmaisink->displayDevice = NULL;
28 + dmaisink->dGfxAttrs = defaultGfxAttrs;
29 + dmaisink->videoStd = NULL;
30 + dmaisink->videoOutput = NULL;
31 + dmaisink->numBufs = -1;
32 + dmaisink->framerepeat = 0;
33 + dmaisink->repeat_with_refresh = FALSE;
34 dmaisink->can_set_display_framerate = FALSE;
35 - dmaisink->rotation = -1;
36 - dmaisink->tempDmaiBuf = NULL;
37 - dmaisink->accelFrameCopy = TRUE;
38 - dmaisink->autoselect = FALSE;
39 - dmaisink->prevVideoStd = 0;
40 - dmaisink->useUserptrBufs = FALSE;
41 - dmaisink->hideOSD = FALSE;
42 - dmaisink->hDispBufTab = NULL;
43 + dmaisink->rotation = -1;
44 + dmaisink->tempDmaiBuf = NULL;
45 + dmaisink->accelFrameCopy = TRUE;
46 + dmaisink->autoselect = FALSE;
47 + dmaisink->prevVideoStd = 0;
48 + dmaisink->useUserptrBufs = FALSE;
49 + dmaisink->hideOSD = FALSE;
50 + dmaisink->hDispBufTab = NULL;
52 dmaisink->signal_handoffs = DEFAULT_SIGNAL_HANDOFFS;
54 @@ -947,14 +947,8 @@ static void gst_tidmaivideosink_check_set_framerate(GstTIDmaiVideoSink * sink)
55 /******************************************************************************
56 * gst_tidmaivideosink_get_framerepeat
57 *
58 - * This function will look at the output display frame rate and the
59 - * input frame rate and determine how many times a frame should be
60 - * repeated. If the output is not an integer multiple of the input
61 - * then 1 is returned to indicate that there will be no frame
62 - * repeating.
63 - *
64 - * If the driver supports explicit configuration of the framerate, we
65 - * don't ever need to repeat frames, and 1 is returned.
66 + * Return how many times a frame should be repeated to support a
67 + * framerate lower than the display's native speed.
68 *
69 ******************************************************************************/
70 static int gst_tidmaivideosink_get_framerepeat(GstTIDmaiVideoSink * sink)
71 --
72 1.7.0.4