From: Hyunsoo Park Date: Thu, 2 Jun 2022 05:20:52 +0000 (+0900) Subject: rtsp-client: block 'gst_rtsp_media_get_rates' in tv profile X-Git-Tag: submit/tizen/20220602.083311^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F08%2F275808%2F6;p=platform%2Fupstream%2Fgstreamer.git rtsp-client: block 'gst_rtsp_media_get_rates' in tv profile [Version] 1.20.0-26 [Issue Type] Product issue 'gst_rtsp_media_get_rates' checks GET_EVENT_SEGMENT. But VD plugins doesn't send GET_EVENT_SEGMENT before data flow. It is temporary solution, after VD plugins resolve this issue, this define would be removed. Change-Id: Ic2d1e6a5f5742d61c2aa404492e17aad704d629a Signed-off-by: Hyunsoo Park --- diff --git a/packaging/gstreamer.spec b/packaging/gstreamer.spec index ce2229de1b..6f70674a7e 100644 --- a/packaging/gstreamer.spec +++ b/packaging/gstreamer.spec @@ -60,7 +60,7 @@ Name: %{_name} Version: 1.20.0 -Release: 25 +Release: 26 Summary: Streaming-Media Framework Runtime License: LGPL-2.0+ Group: Multimedia/Framework diff --git a/subprojects/gst-rtsp-server/gst/rtsp-server/rtsp-client.c b/subprojects/gst-rtsp-server/gst/rtsp-server/rtsp-client.c index 2c24fd306a..44bfff7452 100644 --- a/subprojects/gst-rtsp-server/gst/rtsp-server/rtsp-client.c +++ b/subprojects/gst-rtsp-server/gst/rtsp-server/rtsp-client.c @@ -2160,10 +2160,14 @@ default_handle_play_request (GstRTSPClient * client, GstRTSPContext * ctx) /* the scale and speed headers must always be added if they were present in * the request. however, even if they were not, we still add them if * applied_rate or rate deviate from the "normal", i.e. 1.0 */ +#ifdef TIZEN_PROFILE_TV + /* Temporal workaround fix for TV */ + rate = applied_rate = 1.0; +#else if (!gst_rtsp_media_get_rates (media, &rate, &applied_rate)) goto get_rates_error; g_assert (rate != 0 && applied_rate != 0); - +#endif if (scale_present || applied_rate != 1.0) gst_rtsp_message_take_header (ctx->response, GST_RTSP_HDR_SCALE, g_strdup_printf ("%1.3f", applied_rate));