projects
/
platform
/
upstream
/
gst-omx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b85358a
)
omxvideodec: initialize param structure before using it
author
Josep Torra
<n770galaxy@gmail.com>
Wed, 27 Feb 2013 10:30:14 +0000
(11:30 +0100)
committer
Josep Torra
<n770galaxy@gmail.com>
Wed, 27 Feb 2013 10:30:14 +0000
(11:30 +0100)
omx/gstomxvideodec.c
patch
|
blob
|
history
diff --git
a/omx/gstomxvideodec.c
b/omx/gstomxvideodec.c
index
297753a
..
feb437b
100644
(file)
--- a/
omx/gstomxvideodec.c
+++ b/
omx/gstomxvideodec.c
@@
-1014,6
+1014,9
@@
gst_omx_video_dec_negotiate (GstOMXVideoDec * self)
return FALSE;
}
+ GST_OMX_INIT_STRUCT (¶m);
+ param.nPortIndex = self->dec_out_port->index;
+
for (l = negotiation_map; l; l = l->next) {
VideoNegotiationMap *m = l->data;
@@
-1031,9
+1034,6
@@
gst_omx_video_dec_negotiate (GstOMXVideoDec * self)
g_list_free_full (negotiation_map,
(GDestroyNotify) video_negotiation_map_free);
- /* Reset framerate, we only care about the color format here */
- param.xFramerate = 0;
-
err =
gst_omx_component_set_parameter (self->dec,
OMX_IndexParamVideoPortFormat, ¶m);