summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
Diffstat (limited to 'gst')
-rw-r--r--gst/videoparsers/gsth265parse.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gst/videoparsers/gsth265parse.c b/gst/videoparsers/gsth265parse.c
index 84be1195c..f965a4b49 100644
--- a/gst/videoparsers/gsth265parse.c
+++ b/gst/videoparsers/gsth265parse.c
@@ -883,8 +883,10 @@ gst_h265_parse_handle_frame (GstBaseParse * parse,
*skipsize = size - 3;
goto skip;
default:
- g_assert_not_reached ();
- break;
+ /* should not really occur either */
+ GST_ELEMENT_ERROR (h265parse, STREAM, FORMAT,
+ ("Error parsing H.265 stream"), ("Invalid H.265 stream"));
+ goto invalid_stream;
}
}