mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
omxvideodec: initialize param structure before using it
This commit is contained in:
parent
b85358aff7
commit
26b69d99a2
1 changed files with 3 additions and 3 deletions
|
@ -1014,6 +1014,9 @@ gst_omx_video_dec_negotiate (GstOMXVideoDec * self)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GST_OMX_INIT_STRUCT (¶m);
|
||||||
|
param.nPortIndex = self->dec_out_port->index;
|
||||||
|
|
||||||
for (l = negotiation_map; l; l = l->next) {
|
for (l = negotiation_map; l; l = l->next) {
|
||||||
VideoNegotiationMap *m = l->data;
|
VideoNegotiationMap *m = l->data;
|
||||||
|
|
||||||
|
@ -1031,9 +1034,6 @@ gst_omx_video_dec_negotiate (GstOMXVideoDec * self)
|
||||||
g_list_free_full (negotiation_map,
|
g_list_free_full (negotiation_map,
|
||||||
(GDestroyNotify) video_negotiation_map_free);
|
(GDestroyNotify) video_negotiation_map_free);
|
||||||
|
|
||||||
/* Reset framerate, we only care about the color format here */
|
|
||||||
param.xFramerate = 0;
|
|
||||||
|
|
||||||
err =
|
err =
|
||||||
gst_omx_component_set_parameter (self->dec,
|
gst_omx_component_set_parameter (self->dec,
|
||||||
OMX_IndexParamVideoPortFormat, ¶m);
|
OMX_IndexParamVideoPortFormat, ¶m);
|
||||||
|
|
Loading…
Reference in a new issue