mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 19:55:32 +00:00
discoverer: reflow some code to avoid gst-indent ping-pong
This commit is contained in:
parent
d7d04b9a55
commit
bd12b82538
1 changed files with 6 additions and 4 deletions
|
@ -1202,12 +1202,14 @@ discoverer_collect (GstDiscoverer * dc)
|
|||
if (dc->priv->current_info->duration == 0 &&
|
||||
dc->priv->current_info->stream_info != NULL &&
|
||||
dc->priv->current_info->stream_info->next == NULL) {
|
||||
GstStructure *st =
|
||||
gst_caps_get_structure (dc->priv->current_info->stream_info->caps, 0);
|
||||
GstDiscovererStreamInfo *stream_info;
|
||||
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/"))
|
||||
((GstDiscovererVideoInfo *) dc->priv->current_info->
|
||||
stream_info)->is_image = TRUE;
|
||||
((GstDiscovererVideoInfo *) stream_info)->is_image = TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue