mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
video: Key unit event properties are optional
https://bugzilla.gnome.org/show_bug.cgi?id=675758
This commit is contained in:
parent
c7bbab988f
commit
c2f52f8154
1 changed files with 8 additions and 8 deletions
|
@ -1813,15 +1813,15 @@ gst_video_event_parse_downstream_force_key_unit (GstEvent * event,
|
|||
return FALSE;
|
||||
|
||||
if (!gst_structure_get_clock_time (s, "timestamp", &ev_timestamp))
|
||||
return FALSE; /* Not a force key unit event */
|
||||
ev_timestamp = GST_CLOCK_TIME_NONE;
|
||||
if (!gst_structure_get_clock_time (s, "stream-time", &ev_stream_time))
|
||||
return FALSE; /* Not a force key unit event */
|
||||
ev_stream_time = GST_CLOCK_TIME_NONE;
|
||||
if (!gst_structure_get_clock_time (s, "running-time", &ev_running_time))
|
||||
return FALSE; /* Not a force key unit event */
|
||||
ev_running_time = GST_CLOCK_TIME_NONE;
|
||||
if (!gst_structure_get_boolean (s, "all-headers", &ev_all_headers))
|
||||
return FALSE; /* Not a force key unit event */
|
||||
ev_all_headers = FALSE;
|
||||
if (!gst_structure_get_uint (s, "count", &ev_count))
|
||||
return FALSE; /* Not a force key unit event */
|
||||
ev_count = 0;
|
||||
|
||||
if (timestamp)
|
||||
*timestamp = ev_timestamp;
|
||||
|
@ -1877,11 +1877,11 @@ gst_video_event_parse_upstream_force_key_unit (GstEvent * event,
|
|||
return FALSE;
|
||||
|
||||
if (!gst_structure_get_clock_time (s, "running-time", &ev_running_time))
|
||||
return FALSE; /* Not a force key unit event */
|
||||
ev_running_time = GST_CLOCK_TIME_NONE;
|
||||
if (!gst_structure_get_boolean (s, "all-headers", &ev_all_headers))
|
||||
return FALSE; /* Not a force key unit event */
|
||||
ev_all_headers = FALSE;
|
||||
if (!gst_structure_get_uint (s, "count", &ev_count))
|
||||
return FALSE; /* Not a force key unit event */
|
||||
ev_count = 0;
|
||||
|
||||
if (running_time)
|
||||
*running_time = ev_running_time;
|
||||
|
|
Loading…
Reference in a new issue