mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-07-05 14:16:06 +00:00
discoverer: reflow some code to avoid gst-indent ping-pong
This commit is contained in:
parent
d7d04b9a55
commit
bd12b82538
|
@ -1202,12 +1202,14 @@ discoverer_collect (GstDiscoverer * dc)
|
||||||
if (dc->priv->current_info->duration == 0 &&
|
if (dc->priv->current_info->duration == 0 &&
|
||||||
dc->priv->current_info->stream_info != NULL &&
|
dc->priv->current_info->stream_info != NULL &&
|
||||||
dc->priv->current_info->stream_info->next == NULL) {
|
dc->priv->current_info->stream_info->next == NULL) {
|
||||||
GstStructure *st =
|
GstDiscovererStreamInfo *stream_info;
|
||||||
gst_caps_get_structure (dc->priv->current_info->stream_info->caps, 0);
|
GstStructure *st;
|
||||||
|
|
||||||
|
stream_info = dc->priv->current_info->stream_info;
|
||||||
|
st = gst_caps_get_structure (stream_info->caps, 0);
|
||||||
|
|
||||||
if (g_str_has_prefix (gst_structure_get_name (st), "image/"))
|
if (g_str_has_prefix (gst_structure_get_name (st), "image/"))
|
||||||
((GstDiscovererVideoInfo *) dc->priv->current_info->
|
((GstDiscovererVideoInfo *) stream_info)->is_image = TRUE;
|
||||||
stream_info)->is_image = TRUE;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue